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

Forums / Developing with Sitefinity / How can I change a module title in admin on Sitefinity 3.6?

How can I change a module title in admin on Sitefinity 3.6?

2 posts, 0 answered
  1. Augusto Radtke
    Augusto Radtke avatar
    24 posts
    Registered:
    16 Apr 2010
    18 May 2010
    Link to this post
    Do I have to extend the module and override the Title property? If so, I believe there is a problem with the NewsModule, because it looks for a rss provider in the wrong assembly in GetRssProviders(). I had to override this interface to make it work:

    public class NewsModule: Telerik.News.NewsModule, IRssProviderModule
    {
        public override string Title
        {
            get
            {
                return "Conteúdo Dinâmico";
            }
        }
     
        #region IRssProviderModule Members
     
        RssProviderInfo[] IRssProviderModule.GetRssProviders()
        {
            return new RssProviderInfo[] { };
        }
     
        #endregion
    }


  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    18 May 2010
    Link to this post
    Hello Augusto Radtke,

    If you are inheriting from NewsModule and you are creating a similar module you should implement IRssProviderModule interface as the sample below shows.

               /// <summary>
            /// Gets information about the Rss providers
            /// </summary>
            /// <returns>array with the information on the Rss providers</returns>
            public RssProviderInfo[] GetRssProviders()
            {
                return new RssProviderInfo[] { new RssProviderInfo(MyCustomModule.ModuleName + " Rss Provider",
                    typeof(Telerik.MyCutomModule.Rss.RssChannelProvider).FullName + ", " + this.GetType().Assembly.FullName,
                new Dictionary<string, string>(),
                typeof(RssSettingsControl).FullName + ", " + this.GetType().Assembly.FullName,
                typeof(RssViewControl).FullName + ", " + this.GetType().Assembly.FullName)
                };
            }


    Regards,
    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.
2 posts, 0 answered