1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Just A Simple Page Title Control for 5.1 ... Where is it? This should be DEFAULT!

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

3 posts, 0 answered
  1. catoegroup
    catoegroup avatar
    21 posts
    Registered:
    23 Apr 2010
    29 Jul 2012
    Link to this post
    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!!!
  2. Jochem Bökkers
    Jochem Bökkers avatar
    787 posts
    Registered:
    13 Aug 2007
    30 Jul 2012
    Link to this post
    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
  3. catoegroup
    catoegroup avatar
    21 posts
    Registered:
    23 Apr 2010
    18 Sep 2012
    Link to this post
    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.... ;-)
3 posts, 0 answered