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

Forums / General Discussions / How to set page meta-description from single news item summary

How to set page meta-description from single news item summary

4 posts, 0 answered
  1. Jeff
    Jeff avatar
    1 posts
    Registered:
    01 Feb 2012
    01 Feb 2012
    Link to this post
    When viewing a single news item, the title of the page is automatically set to the title of the news item being viewed.  I'd like to also set the meta-description of the page to the summary of the news item...
         <meta name="description" content="{news item summary}" />

    Can this be done within the Sitefinity UI, or do I need to write code?  Any guidance on this would be greatly appreciated (I'm a Sitefinity newbie).

    I'm running Sitefinity v4.3.1885.0.
  2. Svetoslav Petsov
    Svetoslav Petsov avatar
    456 posts
    Registered:
    24 Sep 2012
    06 Feb 2012
    Link to this post
    Hello,

     This feature is not yet available in Sitefinity. Here you can read more about it:
    http://www.sitefinity.com/devnet/forums/sitefinity-4-x/suggestions/seo-fields-for-news-and-blog-items.aspx 

    All the best,
    Svetoslav Petsov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Jason
    Jason avatar
    1 posts
    Registered:
    24 May 2012
    14 Nov 2012
    Link to this post
    Hi, this page links to nothing and I am trying to find out how this would work.  If we need to alter our news item, that's fine, but do you have any advise on how to do that? We need to have the Tags, and Summary pulled into the header meta tags for SEO.  Thanks
  4. Patrick Dunn
    Patrick Dunn avatar
    237 posts
    Registered:
    03 Nov 2014
    15 Nov 2012
    Link to this post
    Hi Jason,

     This still has not become a fully supported feature in Sitefinity, however, you can link to the code behind in your widget and programmatically add it to your page.

    In the header put this

    <asp:PlaceHolder id="MetaPlaceHolder" runat="server" />

    and in the code behind 

    HtmlMeta meta = new HtmlMeta();
    meta.Name = "description";
    meta.Content = "MyNewsSummaryString";
    MetaPlaceHolder.Controls.Add(meta);

    Let me know if you have any questions.
    Greetings,
    Patrick Dunn
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
4 posts, 0 answered