More in this section

Forums / General Discussions / Nested new items

Nested new items

1 posts, 0 answered
  1. Jaymie
    Jaymie avatar
    27 posts
    30 Jan 2009
    07 Aug 2012
    Link to this post
    Hey all,
    I am currently making a very simple site in Sitefinity. One of the issues I have is with the News pages.
    I have created a page and dragged the news widget onto that page, then I edited the Widget Template for "titles, dates and full content" which I have applied to my widget on my page. 
    The changes I made to the widget template are below:

    <%@  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="sf" namespace="Telerik.Sitefinity.Web.UI.PublicControls.BrowseAndEdit"
        assembly="Telerik.Sitefinity" %>
    <%@ register tagprefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" %>
    <div class="container banner">
        <div class="row padded">
            <div class="twelvecol last spacer">
    <div class="container">
        <div class="row padded">
            <div class="ninecol last right">
                <telerik:RadListView ID="NewsList" ItemPlaceholderID="ItemsContainer" runat="server"
                    EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false">
                        <sf:ContentBrowseAndEditToolbar ID="MainBrowseAndEditToolbar" runat="server" Mode="Add"></sf:ContentBrowseAndEditToolbar>
                        <asp:PlaceHolder ID="ItemsContainer" runat="server" />
                        <h3><sf:DetailsViewHyperLink ID="DetailsViewHyperLink1" TextDataField="Title" ToolTipDataField="Description" runat="server" /></h3>
                        <div class="padding board">
                            <div class="padding-all">
                                <sf:FieldListView ID="NewsContent" runat="server" Text="{0}" Properties="Content" WrapperTagName="div" WrapperTagCssClass="sfnewsContent" />
        <nav class="threecol side">
            <telerik:RadListView ID="NewsListMenu" ItemPlaceholderID="ItemsContainerMenu" runat="server" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false">
                    <sf:ContentBrowseAndEditToolbar ID="MainBrowseAndEditToolbar2" runat="server" Mode="Add"></sf:ContentBrowseAndEditToolbar>
                        <li><h3><a href="/News" class="active">News</a></h3></li>
                        <asp:PlaceHolder ID="ItemsContainerMenu" runat="server" />
                        <sf:DetailsViewHyperLink ID="DetailsViewHyperLink" TextDataField="Title" ToolTipDataField="Description" runat="server" />
                        <sf:ContentBrowseAndEditToolbar ID="BrowseAndEditToolbar2" runat="server" Mode="Edit,Delete,Unpublish"></sf:ContentBrowseAndEditToolbar>

    As you can see, I am trying to create a menu out of the list of news articles.
    I know I can just use 2 news widgets and put them on the page, one of just titles and one for all, but the issue is my container divs. 
    I could create a new Master page where these widgets drop in, but I just want to know if it can be done the way I am trying.

    Thanks for your help,
1 posts, 0 answered