Change Page Title in MVC Widget with Template in Hybrid Mode

Posted by Community Admin on 03-Aug-2018 06:00

Change Page Title in MVC Widget with Template in Hybrid Mode

All Replies

Posted by Community Admin on 22-Mar-2013 00:00

Is it possible to dynamically change a page title from either the Controller or the View when using an MVC Control on Page that is Templated in hybrid mode? I don't have a ViewBag to bubble up to. 

Posted by Community Admin on 25-Mar-2013 00:00

Hi Joseph,

If you set Title in the controller's view bag Sitefinity will pick this up and set the Title of the page:

this.ViewBag.Title = "Some title";

Greetings,
Radoslav Georgiev
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

Posted by Community Admin on 20-Sep-2013 00:00

This does not appear to be working for us in Hybrid mode on Sitefinity 6.1. Has something changed?

Posted by Community Admin on 01-Jul-2014 00:00

Following doesn't work.

this.ViewBag.Title = "Some title";

Any solution?

Posted by Community Admin on 02-Jul-2014 00:00

Hi all,

I have tested the proposed solution by Radoslav and it works fine. Here is a short video of the working widget. Please, specify what version of Sitefinity you are using. In order to use the code in the controller you should have a reference to Microsoft.CSharp.
Hope this helps.

Regards,
Nikola Zagorchev
Telerik

 
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 Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

This thread is closed