Page 1 of 1

News module url and title

Posted: Sat Dec 05, 2015 1:13 am
by Bear55
Hello,

I have two problems with the news module.
First, when I specify the slug url, the url works fine but the template is the one from the home page. I'd like the template stay the same as the one where the link comes from.

Second, the title stays always the same. For example I have a page called 'blog' with all the items. When I click on one item and I reach the page, the title is still 'blog'. I'd like the title becomes the one specified in the news article.

Beside that the news module is great, very easy to manage and has some great features.

Thanks for helping me,
Gabriel

Re: News module url and title

Posted: Sat Jan 16, 2016 4:44 am
by Jeff
First, when I specify the slug url, the url works fine but the template is the one from the home page. I'd like the template stay the same as the one where the link comes from.
It will go to the "Default page to use for detail views" that is set in the News Module Settings.
Second, the title stays always the same. For example I have a page called 'blog' with all the items. When I click on one item and I reach the page, the title is still 'blog'. I'd like the title becomes the one specified in the news article.
This is done in your template. If you are using a template based on the Simplex Design, add something like this to your Detail template:

Code: Select all

{$main_title=$entry->title scope="global}
If not look at the Simplex template to see the changes needed in the main template.