More in this section
Forums / Bugs & Issues / Issue in Maping the FilterContentViewFrontend template to the News widget on 9

Issue in Maping the FilterContentViewFrontend template to the News widget on 9

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Paul
    Paul avatar
    14 posts
    Registered:
    10 Mar 2012
    07 May 2016
    Link to this post

    I am using sitefinity 9 and when I try to map News filter custom template I am getting "Error parsing the template" Please see attached screen shot and below is the CLR . Is there anything I am doing wrong? itefinityWebApp.CustomWidgets.News.Views.NewsMasterListViewCustom, SitefinityWebApp

     

    <code>

    <%@ Control Language="C#" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.ContentUI" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.Comments" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.PublicControls.BrowseAndEdit" Assembly="Telerik.Sitefinity" %>

    <telerik:RadTreeView runat="server" ID="categoriesCombo1" Skin="Sitefinity" />
    <telerik:RadComboBox runat="server" ID="categoriesCombo" Skin="Sitefinity" />
    <asp:Button runat="server" ID="filterBtn" Text="Filter" />

    <telerik:RadListView ID="NewsList" ItemPlaceholderID="ItemsContainer" runat="server" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false">
        <LayoutTemplate>
            <sf:ContentBrowseAndEditToolbar ID="MainBrowseAndEditToolbar" runat="server" Mode="Add"></sf:ContentBrowseAndEditToolbar>
            <ul class="sfnewsList sfnewsListTitleDateSummary">
                <asp:PlaceHolder ID="ItemsContainer" runat="server" />
            </ul>
        </LayoutTemplate>
        <ItemTemplate>
            <li class="sfnewsListItem">
                <h2 class="sfnewsTitle">
                    <sf:DetailsViewHyperLink ID="DetailsViewHyperLink1" TextDataField="Title" ToolTipDataField="Description" runat="server" />
                </h2>
                <div class="sfnewsMetaInfo">
                    <sf:FieldListView ID="PublicationDate" runat="server" Format="{PublicationDate.ToLocal():MMM dd, yyyy}" />
                </div>

                <sf:FieldListView ID="summary" runat="server" Text="{0}" Properties="Summary" WrapperTagName="div" WrapperTagCssClass="sfnewsSummary" />

                <sf:DetailsViewHyperLink ID="FullStory" Text="<%$ Resources:NewsResources, FullStory %>" runat="server" CssClass="sfnewsFullStory" />
                <sf:ContentBrowseAndEditToolbar ID="BrowseAndEditToolbar" runat="server" Mode="Edit,Delete,Unpublish"></sf:ContentBrowseAndEditToolbar>
            </li>
        </ItemTemplate>
    </telerik:RadListView>
    <sf:Pager ID="pager" runat="server"></sf:Pager>
    <asp:PlaceHolder ID="socialOptionsContainer" runat="server" />

    <code>

  2. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    06 Sep 2017
    12 May 2016
    Link to this post
    Hello Paul,

    I have tested the template follwing that article: http://docs.sitefinity.com/create-and-edit-widget-templates and it seems work fine (screenshot). 
    The only change is the skin name, as Sitefinity skin is obsolete, I change it to "Default".
    <telerik:RadTreeView runat="server" ID="categoriesCombo1" Skin="Default" />
    <telerik:RadComboBox runat="server" ID="categoriesCombo" Skin="Default" />

    If you need to use external widget template file you can check the following articles:
    http://docs.sitefinity.com/for-developers-customize-the-markup-of-a-specific-widget
    http://docs.sitefinity.com/use-external-widget-template-file

    In case you have more complex scenario and want to extend the widget functionality you can find more information here:
    http://www.sitefinity.com/blogs/stanislav-velikovs-blog/2012/01/23/how_to_add_additional_logic_into_sitefinity_built_in_widgets

    Regards,
    Svetoslav Manchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
2 posts, 0 answered