Homepage title tag get filled by widget

Topics: General, Troubleshooting, Writing modules
Nov 2, 2011 at 1:17 PM

My homepage gets the wrong text in the title tag which comes from a widget. How can i fix this?

Nov 2, 2011 at 1:25 PM
Edited Nov 2, 2011 at 1:25 PM

The problem is usually in Content.cshtml (Orchard.Core/Contents/Views) - it sets the value of Layout.Title, so if your widget is rendering a Content shape it'll also override the title.

Which widget is it exactly? Can you alter it so it renders the content with a different DisplayType? That way, you can create a Content.[DisplayType].cshtml override and delete the code that sets the title.

Nov 2, 2011 at 1:48 PM

It was indeed the problem you described.thanks!.