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

Forums / General Discussions / meta data

meta data

3 posts, 0 answered
  1. Stephen
    Stephen avatar
    70 posts
    Registered:
    09 Jun 2009
    02 Sep 2009
    Link to this post
    How to add extra meta data below those default ones (description and keyword)? Current wherever I put the new meta data in the header, they are always shown above those default ones generated automatically by the system? Thanks.

    e.g.
    <meta name="Description" content="Text of Report" />
    <meta name="Keywords" content="Text of Report" />
    <meta name="verify-v1" content="xxxxxxxxxxxxxxxxxxxxxxxx" />
     

  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    04 Sep 2009
    Link to this post
    Hello,

    You can use the following control to your Sitefinity project:
    public partial class Sitefinity_UserControls_MetaTagsControl : System.Web.UI.UserControl 
       #region Public Properties 
     
       public string MetaTagName   
       { 
           get   
           { 
               return metaTagName; 
           } 
           set   
           { 
               metaTagName = value; 
           } 
       } 
     
       public string MetaTagContent 
       { 
           get 
           { 
               return metaTagContent; 
           } 
           set 
           { 
               metaTagContent = value; 
           } 
       } 
       #endregion 
     
       protected void Page_Load(object sender, EventArgs e) 
       { 
           HtmlMeta metaTag = new HtmlMeta(); 
           metaTag.Name = this.MetaTagName; 
           metaTag.Content = this.MetaTagContent; 
           this.Page.Header.Controls.Add(metaTag); 
     
       } 
     
       private string metaTagName; 
       private string metaTagContent; 
    }   

    It will help you to add your meta tags once you drop it on the desired page. 

    Sincerely yours,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Stephen
    Stephen avatar
    70 posts
    Registered:
    09 Jun 2009
    08 Sep 2009
    Link to this post
    It works nicely. Thanks Georgi.

    Stephen
Register for webinar
3 posts, 0 answered