Just A Simple Page Title Control for 5.1 ... Where is it? Th

Posted by Community Admin on 04-Aug-2018 15:07

Just A Simple Page Title Control for 5.1 ... Where is it? This should be DEFAULT!

All Replies

Posted by Community Admin on 29-Jul-2012 00:00

http://www.sitefinity.com/marketplace/modules/page-title-control.aspx 

This only works on 3x.

How do I do the same thing for 5x?

Thanks for any help!!!

Posted by Community Admin on 30-Jul-2012 00:00

Hey Jonathan,

You could do something like this to retrieve the description or title:

01.if (!this.IsDesignMode())
02.
03.  string description = new PageManager().GetPageNode(new Guid(SiteMapBase.GetCurrentProvider().CurrentNode.Key)).Description;
04.    if (description != "") ltl_PageDescription.Text = description;
05.  string Title = new PageManager().GetPageNode(new Guid(SiteMapBase.GetCurrentProvider().CurrentNode.Key)).Title;
06.    if (Title != "") ltl_PageTitle.Text = Title;
07. 
08.
09.else
10.
11.    // do something different
12.

In this case, it would just toss out the description and the page title to some literal, but you get the gist...

Jochem

Posted by Community Admin on 18-Sep-2012 00:00

Nah - I'm a designer, not a .net programmer. I need some definite help here. Willing to pay if necessary for a Page Title widget. Drag and drop man, drag and drop.... ;-)

This thread is closed