News module url and title

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
Bear55
New Member
New Member
Posts: 1
Joined: Sat Dec 05, 2015 12:56 am

News module url and title

Post 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
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: News module url and title

Post 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.
Post Reply

Return to “The Lounge”