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

Forums / General Discussions / Make simplified Download List control

Make simplified Download List control

10 posts, 0 answered
  1. rent
    rent avatar
    104 posts
    Registered:
    05 May 2008
    13 Nov 2010
    Link to this post
    Hello all!!!
    I want to simplify Download List sitefinity control such news view control - in main view shows only documents name and its type with document type icons. And when user click more link show more detailed list of downloadavle files. This is may be similar such as News View control.
    Thanks
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    13 Nov 2010
    Link to this post
    Hi rent,

    Download List has only lists presentation mode and it does not support two modes - list and details. You can use one of the built-in controls - ContentView, NewsView, EventsView to achieve your goal. You have to add a custom metakey to the provided and use this metakey with ButtonSelector control and set the ID to your file. Then you can modify ListPageDetails.ascx template of ContentView based control and add your metakey. The ButtonSelector returns ID of the item from Images and Documents module, so you should resolve it.

    You can take a look at our user manual, section Adding Custom Fields, page 214.

    Sincerely yours,
    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
  3. rent
    rent avatar
    104 posts
    Registered:
    05 May 2008
    13 Nov 2010
    Link to this post
    Hi Ivan!!
    I put to page News View control and change Provider Name to Libraries, but then shows error:

    The given key was not present in the dictionary.

    Could you give a detailed description how to modify this control for my goals?
    Thanks.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    13 Nov 2010
    Link to this post
    Hi rent,

    You cannot use NewsView with Libraries provider. Please take a look at "our user manual, section Adding Custom Fields, page 214."

    Kind regards,
    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
  5. rent
    rent avatar
    104 posts
    Registered:
    05 May 2008
    13 Nov 2010
    Link to this post
    Sorry Ivan, but I'm not understand to which module I must add metakeys to news or documents?
    Thanks.
    P.S. If you won't complicate you couldn't give a little example for this situation or to similar situation? Thanks
  6. rent
    rent avatar
    104 posts
    Registered:
    05 May 2008
    15 Nov 2010
    Link to this post
    I'm still need help...
  7. rent
    rent avatar
    104 posts
    Registered:
    05 May 2008
    16 Nov 2010
    Link to this post
    Anyone?
  8. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    16 Nov 2010
    Link to this post
    Hi Rent,

    If you want to use the news module for this, you should add metakeys to the news provider. You could adjust the existing news provider or create a copy of the news provider like this:

    <add name="Downloads" urlRewriteFormat="[Publication_Date]/[Title].aspx" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="-" visible="False" defaultMetaField="Title" securityProviderName="" allowVersioning="True" applicationName="/Downloads" versioningProviderName="" allowWorkflow="True" commentsModeration="true" connectionStringName="GenericContentConnection" type="Telerik.News.Data.DefaultNewsProvider, Telerik.News.Data" />

    and then add the metafields:

    <add key="Downloads.Summary" valueType="LongText" visible="True" searchable="True" sortable="True" defaultValue="" />
                    <add key="Downloads.Author" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" />
                    <add key="Downloads.Source" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" />
                    <add key="Downloads.Publication_Date" valueType="DateTime" visible="True" searchable="True" sortable="True" defaultValue="#Now" />
                    <add key="Downloads.Expiration_Date" valueType="DateTime" visible="True" searchable="True" sortable="True" defaultValue="#Max" />
                    <add key="Downloads.Thumbnail" valueType="ShortText" visible="True" searchable="False" sortable="False" defaultValue="" />
                    <add key="Downloads.Category" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" />
                    <add key="Downloads.PageUrl" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" />
                    <add key="Downloads.File" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" />


    Modify the templates, or copy them from the external templates package and your good to go.

    Regards,
    Daniel
  9. rent
    rent avatar
    104 posts
    Registered:
    05 May 2008
    16 Nov 2010
    Link to this post

    Thanks Daniel!!

    And now which user controls use for this new provider? And how this control modify for this new provider?

    Thanks.

  10. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    16 Nov 2010
    Link to this post
Register for webinar
10 posts, 0 answered