Nested new items
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>
</div>
</div>
<div
class
=
"container"
>
<div
class
=
"row padded"
>
<div
class
=
"ninecol last right"
>
<telerik:RadListView ID=
"NewsList"
ItemPlaceholderID=
"ItemsContainer"
runat=
"server"
EnableEmbeddedSkins=
"false"
EnableEmbeddedBaseStylesheet=
"false"
>
<layouttemplate>
<sf:ContentBrowseAndEditToolbar ID=
"MainBrowseAndEditToolbar"
runat=
"server"
Mode=
"Add"
></sf:ContentBrowseAndEditToolbar>
<h2>News</h2>
<asp:PlaceHolder ID=
"ItemsContainer"
runat=
"server"
/>
</layouttemplate>
<itemtemplate>
<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"
/>
</div>
</div>
</itemtemplate>
</telerik:RadListView>
</div>
</div>
<nav
class
=
"threecol side"
>
<telerik:RadListView ID=
"NewsListMenu"
ItemPlaceholderID=
"ItemsContainerMenu"
runat=
"server"
EnableEmbeddedSkins=
"false"
EnableEmbeddedBaseStylesheet=
"false"
>
<LayoutTemplate>
<sf:ContentBrowseAndEditToolbar ID=
"MainBrowseAndEditToolbar2"
runat=
"server"
Mode=
"Add"
></sf:ContentBrowseAndEditToolbar>
<ul>
<li><h3><a href=
"/News"
class
=
"active"
>News</a></h3></li>
<asp:PlaceHolder ID=
"ItemsContainerMenu"
runat=
"server"
/>
</ul>
</LayoutTemplate>
<ItemTemplate>
<li>
<sf:DetailsViewHyperLink ID=
"DetailsViewHyperLink"
TextDataField=
"Title"
ToolTipDataField=
"Description"
runat=
"server"
/>
<sf:ContentBrowseAndEditToolbar ID=
"BrowseAndEditToolbar2"
runat=
"server"
Mode=
"Edit,Delete,Unpublish"
></sf:ContentBrowseAndEditToolbar>
</li>
</ItemTemplate>
</telerik:RadListView>
</nav>
</div>