More in this section

Page Heading

15 posts, 0 answered
  1. Simon
    Simon avatar
    28 posts
    Registered:
    27 Jun 2008
    05 Aug 2008
    Link to this post
    I would like to set page headings from the General Properites of a page. So as well as adding Page name and Menu label I would also like to set the Page Heading. This heading should then be added to the page wrapped in <h1> tags.

    At the moment I am adding a Generic control to a ContentPlaceHolder to allow users to set the page heading, but this is overkill - they don't need formatting control, just the ability to set the heading.
  2. Nikifor
    Nikifor avatar
    232 posts
    Registered:
    18 May 2013
    08 Aug 2008
    Link to this post
    Hi Simon,

    We will consider this functionality for one of the future releases. As you ponited out, the only possible workaround for the time being is to add a ContentPlaceHolder to the top of each template.

    All the best,
    Nikifor
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Joe
    Joe avatar
    64 posts
    Registered:
    05 Jul 2012
    08 Aug 2008
    Link to this post
    Check out this control...
    http://www.goondocks.com/blog/07-11-19/Sitefinity_Page_Title_Control.aspx

    Joseph Guadagno
    Southeast Valley .NET User Group
  4. Simon
    Simon avatar
    28 posts
    Registered:
    27 Jun 2008
    11 Aug 2008
    Link to this post
    Fantastic!
    Joseph that's just what I wanted.

    Your sitemap control is also really handy!
  5. Joe
    Joe avatar
    64 posts
    Registered:
    05 Jul 2012
    11 Aug 2008
    Link to this post
    Those controls on GoonDocks are not mine, but you are are welcome.
  6. Ivan
    Ivan avatar
    478 posts
    Registered:
    16 Jun 2015
    11 Aug 2008
    Link to this post
    Hi Simon,

    Just a brief note. Goondocks is a blog/website maintained by Gabe Summner - Sitefinity MVP. Gabe is very active in Sitefinity community and has contributed many controls and code samples. Goondocks.com is a very good resource for any Sitefinity related work.

    All the best,
    Ivan
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  7. Simon
    Simon avatar
    28 posts
    Registered:
    27 Jun 2008
    11 Aug 2008
    Link to this post
    Hi Ivan,

    You should give him a job :P
  8. Simon
    Simon avatar
    28 posts
    Registered:
    27 Jun 2008
    12 Aug 2008
    Link to this post
    I was wondering when this functionality might make it into a future release?

  9. Ivan
    Ivan avatar
    478 posts
    Registered:
    16 Jun 2015
    12 Aug 2008
    Link to this post
    Hello Simon,

    You can develop a simple user control (call it header) and place it at the top in the template. The user control would be getting the current SiteMapNode and casting it to CmsSiteMapNode - which has the CmsPage property. From the CmsPage property you have access to all the properties of the page, such as Title, Menu label, url, keywords, descriptions and so on. Therefore you could dynamically construct the HeaderControl for each page based on its properties.

    I hope you'll find this information helpful. Let us know if there is anything else we can do for you.

    Sincerely yours,
    Ivan
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  10. Joel
    Joel avatar
    28 posts
    Registered:
    18 Jun 2008
    20 Feb 2009
    Link to this post
    Do you have an example of this?

    I would like to show the Menu Label as the page header and then be able to modify the Page Title by using the meta dialog on each page.

    That would keep my page headers in line with the menu / navigation nomenclature and give me more control with the Title tag per page.

    Any ideas how?
  11. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    23 Feb 2009
    Link to this post
    Hi Joel,

    Please check this article - I am sure it will show you the right way - Add Meta Tags To Pages.
    Let me know if you need any further details. We will be glad to assist you.

    Best wishes,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  12. Joel
    Joel avatar
    28 posts
    Registered:
    18 Jun 2008
    23 Feb 2009
    Link to this post

    Thanks.

    I can add meta tags using the page level properties. That works great.

    What I want to do is leverage the "Menu Label" as a header on the page. Currently using Goondocks module for Page Title, but looking at how I can leverage the Menu Label so I can use the page title and meta info as normal.

    Thoughts?


  13. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    26 Feb 2009
    Link to this post
    Hello Joel,

    I have attached a simple example for the required functionality (Ivan has described this in one of the previous posts). To use it you need just to upload the control through Sitefinity interface and then drag and drop it on the page.

    Hope this helps.

    Greetings,
    Pepi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  14. Joel
    Joel avatar
    28 posts
    Registered:
    18 Jun 2008
    26 Feb 2009
    Link to this post
    Thanks.

    I actually used Goondocks Pagetitle control and modified the .cs file
    to use:

    CurrentCmsNode.CmsPage.MenuName;


    Worked like a charm!

    Thank you for yours as well!

  15. Ivan
    Ivan avatar
    478 posts
    Registered:
    16 Jun 2015
    02 Mar 2009
    Link to this post
    Hello Joel,

    we are glad that Gabe over at Goondocks was able to help you. Let us know if there is anything else we can do for you.

    Kind regards,
    Ivan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Register for webinar
15 posts, 0 answered