Autogenerated News Page does not contain Footer
Hey,
i got a Page Template with an Menu and a Footer. I use that template for a News List Page. The problem is, that if i click on a news item, the auto genrated detail page does not have the Footer. Is this behaviour the way it is supposed to be?
Greetings,
Johanna
Hello Johanna,
The auto-generated page has its own template. You could update it by:
- Open 'Edit' menu on the news widget
- Select 'Single Item Settings' tab
- Select in the 'Detail templates' drop-down menu the template
- Click 'Edit selected template'
- Modify the template
- Save the changes
or check in this article.
Alternatively, you could create a dedicated page with your own template (choose not show in navigation option, if needed) and just add the news widget on it, than:
- Open 'Edit' menu on the initial news widget (where the all news are listed)
- Select 'Single Item Settings' tab
- Select 'Selected existing page ...'
- Choose your page
- click 'Save'
Regards,
Svetoslav Manchev
Telerik
Thanks for the Reply,
I know the two possibilities you mentioned. My problem is, that i can't include my footer in the widget template because it is implemented with the MVC framework. The only option i see is to insert the plain html into the template, which i try to prevent.
But im confused why the footer is omitted anyway. Because the option says that the autogenerated news page has the same layout as the page where i inserted the news control. But it hasn't.
I added an example. On the screeenshot you can see the black footer is existent for the News List. But in the detail page it is missing.
Regards,
Johanna
Hello Johanna,
In case you need to use MVC widget, you need to override the "HandleUnknownAction" method in your controller:
protected
override
void
HandleUnknownAction(
string
actionName)
var model =
new
YourWidgetModel();
// Implement you model (for example)
model.Message =
"Unknown Action!"
;
View(
"Default"
, model).ExecuteResult(
this
.ControllerContext);
Hello,
In addition to the information below, you could check also the blog post related to:
New MVC Goodness in Sitefinity 6.2
I hope the above blog post will be useful also.
Regards,
Svetoslav Manchev
Telerik