More in this section

Forums / Bugs & Issues / News Widget changing PageTitle

News Widget changing PageTitle

4 posts, 1 answered
  1. Jesse
    Jesse avatar
    31 posts
    Registered:
    08 Nov 2010
    16 Sep 2011
    Link to this post
    Hey guys,

    I've been battling with a News Widget feature that constantly affects my page titles. Every time I use the News Widget and click Edit -> Advance and I remove Replace in
  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    30 Oct 2017
    16 Sep 2011
    Link to this post
    Hi Jesse,

    Can you please let us know hwther you are just deleting the Replace value, or you are setting it to a different option? If you have a content widget placed on the page and the ContentViewDisplayMode property is set to Detail (e.g you have set a News widget to display a single news article on that page) then the widget tries to set the page title to the content title. You can choose among several modes here:
    Append - the content title will be appended to the page title
    Replace
    - the default setting, where the page title is replaced with the content title
    DoNotSet
    - content title will not be included in the page title

    You can set the PageTitleMode property of the widget to DoNotSet and will achieve the desired results. If any problems persist, please let us know.



    Best wishes,
    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
    Answered
  3. Jesse
    Jesse avatar
    31 posts
    Registered:
    08 Nov 2010
    16 Sep 2011
    Link to this post
    Hi Boyan,

    Thank you very much. This is working, however is it possible for it to be set as DoNotSet by default. I would now have to go through each page to change it to that value. Is there a way of changing it on the widget itself?
  4. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    30 Oct 2017
    16 Sep 2011
    Link to this post
    Hello Jesse,

    That's a tough one, unfortunately that property is not exposed in the control definitions.  One option would be to place the control on a template and base your pages on that template. However, if the use case scenario is not suitable for such implementation, you will need to crate a custom NewsView type, and set the default value for the PageTitleMode property. You can then  iterate through your pages and substitute the existing NewsView controls with your custom type.

    Regards,
    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
4 posts, 1 answered