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

Forums / General Discussions / How to add custom meta tags and meta descriptions to News items

How to add custom meta tags and meta descriptions to News items

19 posts, 0 answered
  1. Sarah
    Sarah avatar
    1 posts
    Registered:
    21 Jun 2010
    21 Jun 2010
    Link to this post

    The News module seems to auto-generate a URL for each News Item based on the title of the item. Each item then inherits meta tags and meta description data from the parent page.

    Is it possible to apply custom meta tag and meta description values at the New item level (i.e. is it possible to override the parent-page settings)?

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    22 Jun 2010
    Link to this post
    Hi Sarah,

    For Sitefintiy 4.0 we will have this feature out of the box. I believe that we will be able to introduce this feature for the BETA release.

    For 3.x  edition

    You could create  an additional metakey ( UserManual, page 219) and define the metakeys for each news item. When you open the item in single mode you will read this metakey and use HtmlMeta ASP.NET class to add the keys in the header collection.

    You could create a custom control that inherits from NewsView. Then override SetSingleItemContent. you could access the IContent directly, because it is a parameter of the method. Then call GetMetaData() and read the value of the custom metakey you have already created. If the string is not empty use HtmlMeta class to add metadata.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Shaka
    Shaka avatar
    11 posts
    Registered:
    07 Jan 2011
    21 Apr 2011
    Link to this post
    Do you have an example of this you could send me.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    22 Apr 2011
    Link to this post
    Hello Shaka,

    You can add custom metakeys directly from the UI of each content module in Sitefinity 4.0.

    Regards,
    Ivan Dimitrov
    the Telerik team

  5. Shaka
    Shaka avatar
    11 posts
    Registered:
    07 Jan 2011
    22 Apr 2011
    Link to this post
    I am maintaining a customer's site that's using Sitefinity 3.7
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    22 Apr 2011
    Link to this post
    Hello Shaka,

    Please refer to our User Manual, Adding Custom Fields section.

    All the best,
    Ivan Dimitrov
    the Telerik team

  7. Shaka
    Shaka avatar
    11 posts
    Registered:
    07 Jan 2011
    22 Apr 2011
    Link to this post
    I am using a custom metafield to display the html title. But it displays the html title twice. This is how it's displayed in the browser...

    This is the title of the page > This is the title of the page.

    Before I started using the custom metafield, it displayed the main news page title and then the sub news article title as such...

    This is the title of the main news page > This is the title of the news article page.

    How do I only display only the news article title; without the  divider ">" sign? Is there a setting I am overlooking?
  8. Erik
    Erik avatar
    62 posts
    Registered:
    02 May 2011
    17 May 2011
    Link to this post
    The manual references the following files:

    ~/Sitefinity/Admin/ControlTemplates/News/NewsItemList.ascx
    ~/Sitefinity/Admin/ControlTemplates/News/App_LocalResources/NewsItemPreview.ascx.resx
    ~/Sitefinity/Admin/ControlTemplates/News/NewsItemPreview.ascx

    None of these exist in my project. Do you know why that would be? I am on version 3.7.2136.2.
  9. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    17 May 2011
    Link to this post
    Hi ,

    Have you checked the external templates?

    Kind regards,
    Ivan Dimitrov
    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
  10. Erik
    Erik avatar
    62 posts
    Registered:
    02 May 2011
    17 May 2011
    Link to this post
    What are the steps to download the external templates?
  11. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    18 May 2011
    Link to this post
    Hi Shaka,

    You can find a complete reference for all Views (controls) in the ControlsConfigReference.xml which you will find in ExternalTemplates.zip file. It can be downloaded from your Client.Net accounts. Note that you should download the templates needed for your version. Example:

    Best wishes,
    Ivan Dimitrov
    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
  12. Erik
    Erik avatar
    62 posts
    Registered:
    02 May 2011
    18 May 2011
    Link to this post
    Yes, I read that on the link you posted. But how do you actually find the download on the site? How do you navigate to get there?
  13. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    19 May 2011
    Link to this post
    Hi,

    You do not have active downloads and it is not possible to get the 3.x templates. Please use the account from which you downloaded Sitefinity to get the external templates.

    Regards,
    Ivan Dimitrov
    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
  14. Will
    Will avatar
    1 posts
    Registered:
    29 Sep 2010
    13 Jun 2011
    Link to this post
    I can't figure out how to download the ExternalTemplates.zip. Where do I find the link download for my version?
  15. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    13 Jun 2011
    Link to this post
    Hi Will,

    Here is a link to the download section

    http://www.sitefinity.com/account/your-products/product-versions/single-download.aspx?pmvid=2288&pid=463

    Regards,
    Ivan Dimitrov
    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
  16. Ryan
    Ryan avatar
    5 posts
    Registered:
    23 May 2011
    26 Aug 2011
    Link to this post
    Hi,
    I have Sitefinity 4.0 and am trying to add custom meta tags for my news articles.  I am able to create the custom fields, but am unable to make them appear in the <head> of the actual news article.  I was thinking I could add the custom fields on the widget template for my single item news template... but there doesn't seem to be a way to make the tags appear in the <head> which is where they would need to go.

    Specifically, I want to add the Facebook meta tags to the head section so that facebook will preview the articles correctly:
    <meta property=”og:image” content=”url to image”/>
    <meta property=”og:title” content=”title of the page”/>
    <meta property=”og:site_name” content=”name of the site”/>
  17. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    30 Aug 2011
    Link to this post
    Hi Ryan,

    You can use ASP.NET HtmlMeta class to add your tags.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  18. Amanda Shafer
    Amanda Shafer avatar
    198 posts
    Registered:
    12 Oct 2012
    21 Feb 2013 in reply to Ivan Dimitrov
    Link to this post

    Hi Ivan,

    Can you provide slightly more detail on how to accomplish this? I'm currently using 5.3. I would like to add custom meta tags for each news story. 

    Thanks!

  19. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    06 Dec 2016
    26 Feb 2013
    Link to this post
    Hi Amanda,

    Sitefinity 5.4 offers such functionality out of the box, where you can configure a custom field from which the system can pull the meta description information for each content item. For previous versions I believe you might find this blog post useful.

    Greetings,
    Boyan Barnev
    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
19 posts, 0 answered