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

Forums / Designing with Sitefinity / Customizing DownloadList

Customizing DownloadList

10 posts, 0 answered
  1. KMac
    KMac avatar
    133 posts
    Registered:
    15 Dec 2008
    08 May 2009
    Link to this post
    Hello,

    Just trying to figure something out here. In 3.6 to modify templates I need to map views using the ControlsConfig file, but if I want to just modify the look and feel of one instance of a module do I still go into the advanced tab of the instance on the page and click the ItemListTemplatePath under the Appearance Panel?

    I'm trying to do that right now for the DownloadlistTableModeTemplate.ascx. I've created a new usercontrol based on the aforementioned file, pointed the path in the ItemListTemplatePath section and saved out. But the changes are not taking. Am about this wrong for the new version? Should I be using the view mapping even though it's the only downloadList control (of many in use) that I want to customize?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    08 May 2009
    Link to this post
    Hi Kalvin MacLeod,

    If you are working with presentation modes for the public controls you should use Advanced mode >> Appereance >> ItemListTemplatePath and SingleItemTemplate path properties.

    For user controls you can use the following declaration:

    <%@ Register TagPrefix="lib" Assembly="Telerik.Libraries" Namespace="Telerik.Libraries" %> 
     
    <lib:DownloadList ID="downloadlist" runat="server" SingleItemTemplatePath="~/path/file.ascx"  TableModeTemplatePath="~/path/file2.ascx" Mode="TableMode">  
    </lib:DownloadList> 

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. KMac
    KMac avatar
    133 posts
    Registered:
    15 Dec 2008
    08 May 2009
    Link to this post
    Hey Ivan,

    Thanks. Maybe I'm missing something here, but I am using Advanced mode >> Appereance >> ItemListTemplatePath and selecting the .ascx file with the changes I've made to DownloadListTableModeTemplate.ascx (basic text changes at the moment) and the changes are not being picked up. Even if I select the modified usercontrol/template in Advanced mode >> Appereance >> ItemListTemplatePath, click save, rename my template and then then view the page, nothing is changed. I'd assume I'd get an error but it's just like it refuses to recognize that I want to use a different template than the default.

    Any ideas?
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    11 May 2009
    Link to this post
    Hello Kalvin MacLeod,

    Thank you for getting back to me.

    Please go to advanced tab and open TemplatePaths category. There is a property
    ItemListTemplatePath that should be used. Let us know if there is anything else that we can do for you.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Kutay
    Kutay avatar
    18 posts
    Registered:
    21 Apr 2009
    25 Jun 2009
    Link to this post
    Hello,

    I'm trying to change the appearance of all the download lists by setting

    <

     

    viewSettings hostType="Telerik.Libraries.DownloadList">
    <
    additionalTemplates>
    <
    add key="ItemListTemplatePath" layoutTemplatePath="~/Custom/ControlTemplates/ise/RelatedDownloads.ascx" />
    </
    additionalTemplates>
    </
    viewSettings>

    in the file Telerik.Sitefinity.Configuration.ControlsConfig.xml

    But the changes don't seem to take effect.

    If I open the advanced tab, and set the property there, there's no problem. What should I do so that every download list looks the way that I specified in the config file?

    Thanks.

     

  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    25 Jun 2009
    Link to this post
    Hi Kutay,

    Please take a look at the following Blog Post that describes how to work with PresentationModes.You should map DownloadListControlDesigner template and set the MasterTemplatePath property of the PresentationMode control.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. Kutay
    Kutay avatar
    18 posts
    Registered:
    21 Apr 2009
    26 Jun 2009
    Link to this post
    Hello Ivan,

    I tried what you proposed, but it doesn't work. Am I doing something wrong here?
    My ControlsConfig.xml file looks like this now:

    <!--

     

    Provides user interface for setting up the DownloadList control designer in the Images & Documents module.-->

     

    <

     

    viewSettings hostType="Telerik.Libraries.WebControls.Design.DownloadListDesigner" layoutTemplatePath="~/Custom/ControlTemplates/Admin/ControlTemplates/Libraries/DownloadListControlDesigner.ascx" />

    In the DownloadListControlDesigner.ascx file, the PresentationModes look like this:

     

    <

     

    sf:PresentationModes ID="presentationModes" runat="server">

     

     

     

     

     

    <sf:PresentationMode ID="ListMode"

     

     

    runat="server"

     

     

     

     

     

    ModeTitle="List"

     

     

     

     

     

    ModeSettingsId="ModeSettings1"

     

     

     

     

     

    MasterTemplatePath="~/Custom/ControlTemplates/ise/RelatedDownloads.ascx"

     

     

    SelectedCssClass="selectedOption">

    And in the RelatedDownloads.ascx file, I have the custom template for the list mode...

    I made the changes and restarted IIS.

    Do I need to do anything else?

    Thanks.

     

  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    26 Jun 2009
    Link to this post
    Hello Kutay,

    Try removing the control from your page and then add it again. You could also try switching and saving between mode. The could be some cache.
    Just to let you know RadEditor control supports FormatCode block option that can be used when you paste your code.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  9. Lucas
    Lucas avatar
    65 posts
    Registered:
    22 Mar 2010
    03 Jun 2010
    Link to this post
    Hi Ivan, sorry to bump this thread

    TableModeTemplatePath is now marked as obsolete. What is the best way to assign custom list/table/details templates now?
  10. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    03 Jun 2010
    Link to this post
    Hi Lucas,

    There is a property in the ControlDesigner >> Advanced Tab >> TemplatePaths - ItemListTemplatePath that you can use. Another option is mapping the ControlDesigner and then set the template inside the designer - Working with presentation modes

    Best wishes,
    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.
Register for webinar
10 posts, 0 answered