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

Forums / Developing with Sitefinity / How do add more tags other than whats in the dropdownlist under the page properties section

How do add more tags other than whats in the dropdownlist under the page properties section

4 posts, 0 answered
  1. Annie
    Annie avatar
    123 posts
    Registered:
    08 Apr 2009
    23 Apr 2009
    Link to this post
    How do add  more tags other than whats in the dropdownlist under the page properties section..I want to modify this section under the page properties and programmatically add more tags...how do I do this?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    23 Apr 2009
    Link to this post
    Hi Annie,

    I regret to inform you that there is no option for adding new tags under the dropdown list. The class is internal so it cannot be done programmatically.

    Here is a sample of a control that you can add to your pages and specify additional metatags.

     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; 
    }    


    All the best,
    Ivan Dimitrov
    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.
  3. Annie
    Annie avatar
    123 posts
    Registered:
    08 Apr 2009
    23 Apr 2009
    Link to this post
    Is it possible for me to see the inner workings of this class?
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    24 Apr 2009
    Link to this post
    Hello Annie,

    I am not sure what you mean.
    This control is not built using Sitefinity's API, it is rather using native .NET classes.

    Sincerely yours,
    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.
Register for webinar
4 posts, 0 answered