1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Uploading document to the document library from news module

Uploading document to the document library from news module

2 posts, 0 answered
  1. Saumitra
    Saumitra avatar
    127 posts
    Registered:
    10 Mar 2009
    20 May 2010
    Link to this post
    Hi,

    I've a requirement where I need to allow the admin user to upload a document to the document library directly from the news module while adding a news item. The basic purpose of doing this is to avoid having the user to upload a document first into the document library and then mapping it to the news item.

    Can you please tell me how do I acheive this ? Please note that we've already customised the news module to allow the user to map a particular news item to a particular document in the document library.

    Thanks,
    Saumitra
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    20 May 2010
    Link to this post
    Hi Saumitra,

    Add a new metakey to the templates - NewsItemNew and NewsItemEdit. Both templates have declaration of ButtonSelector control that is used for Thumbnails. Copy the ButtonSelector control and map it to your metakeys for documents. The ButtonSelector allows you to upload items directly to a given library.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
2 posts, 0 answered