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
News module url and title
Re: News module url and title
It will go to the "Default page to use for detail views" that is set in the News Module Settings.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.
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: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.
Code: Select all
{$main_title=$entry->title scope="global}