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

Forums / Developing with Sitefinity / Error on pages that have image gallery and download list

Error on pages that have image gallery and download list

8 posts, 0 answered
  1. Annie
    Annie avatar
    123 posts
    Registered:
    08 Apr 2009
    01 Jun 2010
    Link to this post
    Hi,

    I recently upgraded our sitefinity website from 3.5 to 3.7, I am getting the following error on all the pages that have image gallery or download list 'cannot find template /Sitefinity/ControlTemplates/Libraries/ContentViewItemList.ascx'. Error goes away when I re-add the image gallery or download list, is there a quicker solution for this problem?

    Thanks,
    Annie
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    01 Jun 2010
    Link to this post
    Hi Annie,

    It looks like you have mapped the external template from the control's properties. When you delete the controls the property values are cleared, the control starts using its embedded templates and you are not getting the errors. If you use or want to use custom templates please take a look at


    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.
  3. J.R. Garcia
    J.R. Garcia avatar
    24 posts
    Registered:
    12 Aug 2008
    10 Jun 2010
    Link to this post
    Ivan,

    I'm having the exact same issue, but we aren't using any external templates. I'm not sure how this happened, but I have no idea how to fix it. I would map to an external template, but we don't have any to map to (we were never using one). It looks like everything works when the 3.5.1747.1 Telerik.Libraries dll is in the bin folder, but it throws this error when the 3.7.2096.2 Telerik.Libraries dll is in the bin folder.

    Any ideas why this is occurring and what I can do to fix it?

    Thanks,

    J.R. Garcia
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    14 Jun 2010
    Link to this post
    Hello J.R. Garcia,

    The Sitefinity 3.5 version did not use embedded templates - it used the templates which can be found in ~/Sitefinity/Admin/ControlTemplates or ~/Sitefinity/ControlTemplates. The new version works with control templates which are embedded by default and if you wish to use custom ones you have to perform the steps outlined in the articles which Ivan has linked. If the site has been upgraded from Sitefinity 3.5 to 3.7:
    1) Make sure you get the latest control templates from your account.
    2) Go to the pages where you have the controls having problem click edit on the controls and go to Advanced and in section TemplatePaths specify the path to the appropriate templates. The control templates for those controls can be found in ~/Sitefinity/Admin/ControlTemplates/Libraries/Modes.

    Best wishes,
    Radoslav Georgiev
    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. J.R. Garcia
    J.R. Garcia avatar
    24 posts
    Registered:
    12 Aug 2008
    15 Jun 2010
    Link to this post
    Radoslav,

    We are not using any external templates. We have not customized any of the Sitefinity modules at all. I have the latest control templates and I'm still having the error occur. I tried browsing to ~/Sitefinity/Admin/ControlTemplates/Libraries/Modes in the control that is throwing an error, but the Modes folder does not exist. I tried setting the ItemListTemplatePath to ~/Sitefinity/ControlTemplates/Libraries/GalleryLightboxListTemplate.ascx, but even after changing the template path it is getting the same error ("cannot find template /Sitefinity/ControlTemplates/Libraries/ContentViewItemList.ascx"). Do you have any other suggestions. This site is in production and our customer is very unhappy with this issue.

    Thanks,

    J.R. Garcia
  6. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    16 Jun 2010
    Link to this post
    Hi J.R. Garcia,

    Please check your controls on the pages if they have any properties set for template paths. If they do, please clear them. You can also try downloading the external template archive for your version of Sitefinity and extract the archive into the project folder. And then map the control templates.

    Kind regards,
    Radoslav Georgiev
    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.
  7. Laura
    Laura avatar
    311 posts
    Registered:
    25 Feb 2008
    23 Sep 2010
    Link to this post
    What is the difference between this file path:
    Sitefinity_3_7_2096_community_ExternalTemplates\Sitefinity\ControlTemplates\Libraries\DownloadList.ascx
    and
    Sitefinity_3_7_2096_community_ExternalTemplates\Sitefinity\Admin\ControlTemplates\Libraries\DownloadList.ascx

    I want to set the default template and I am doing so by mapping to my custom DownloadListControIDesigner in the configuration.xml file as such:
    <viewMap>
            <!--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/Libraries/DownloadListControlDesigner.ascx" />
        </viewMap>

    And setting in the custom template:
    MasterTemplateName="~/Custom/ControlTemplates/Libraries/Modes/DownloadList.ascx"

    But what is this line in reference to in the configuration.xml file? Is it just legacy code from previous versions??
    <viewSettings hostType="Telerik.Libraries.DownloadList">
          <additionalTemplates>
            <add key="ItemListTemplatePath" layoutTemplatePath="~/Sitefinity/ControlTemplates/Libraries/DownloadList.ascx" />
          </additionalTemplates>
        </viewSettings>

    Thank you.
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    24 Sep 2010
    Link to this post
    Hi Laura,

    By default the admin path should refer to Sitefinity_3_7_2096_community_ExternalTemplates\Sitefinity\Admin\ControlTemplates\Libraries\Modes\DownloadList.ascx. Anyway, there should not be difference in the templates.

    As for the mapping, there are several ways to do this - Configuration file

    direct mapping to the host
    using the control designer mapping and then setting the  MasterTemplatePath( not MasterTemplateName)
    using backend UI and mapping the template through the public property.

    You can use mapping the control designer through ControlsConfig and then setting MasterTemplatePath in case when you want to use a custom template for all instances of your control. Through the mapped control designer you can easily  change the modes for a different templates.

    Using the public properties of the control - you can use this option when you want to have different template for each instance of the DownloadList control which allows you to have two or more controls of the same type on a single page with different appearance.


    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
Register for webinar
8 posts, 0 answered