Customize Navigation control
Hi,
I want to integrate my custom design to Sitefinity Navigation control.I tried by creating new template by using existing template designs.But I could not display the third level pages in my menu.Got only up to second level.But if I use sitefinity template it displays all the levels.How can I make this possible..?
If not ,is there any way to to create a user control where I can get all the pages that have been made "Show in Navigation=true" in db.So that i can do it from code behind.
Please see the attached image for my requirement.It is very urgent I have been working on this for the last two days..Please help....
Hello Bernaditta,
In order to get all pages that have show in navigation checked you may use the following code snipped:
using
System;
using
System.Linq;
using
Telerik.Sitefinity;
using
Telerik.Sitefinity.Fluent.Pages;
namespace
SitefinityWebApp
public
partial
class
GetPageTitle : System.Web.UI.Page
protected
void
Page_Load(
object
sender, EventArgs e)
var pageNodes = App.WorkWith()
.Pages()
.LocatedIn(PageLocation.Frontend)
.Where(p => p.ShowInNavigation==
true
&& p.Page.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live)
.Get()
.ToList();