News Links with different templates -help

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
Lexander

News Links with different templates -help

Post by Lexander »

Hello Everyone!

I am currently new to "CMS made Simple" and I need help with making costum "news summery" links to different templates. From what I now have witnessed, is that when you were to click on a summary link, the same template/page refreshes and displays the full article. How can I appropiatly edit the summerary links to POST it's ID to a different template? What is it that I have to change in the "Summary Template Editor"?

Can anybody explain this to me how it's done?

:)
User avatar
raj
New Member
New Member
Posts: 5
Joined: Sun Jan 20, 2008 8:33 pm
Location: UK

Re: News Links with different templates -help

Post by raj »

Lexander wrote: Hello Everyone!

I am currently new to "CMS made Simple" and I need help with making costum "news summery" links to different templates. From what I now have witnessed, is that when you were to click on a summary link, the same template/page refreshes and displays the full article. How can I appropiatly edit the summerary links to POST it's ID to a different template? What is it that I have to change in the "Summary Template Editor"?

Can anybody explain this to me how it's done?

:)
Dear CMS Made Simple Gurus

This is a fantastic system and I wish to thank you- I will be making a donation to the core team.

I too am wondering how to use a different template for the News Detail page. For example if you have a news summary block on the homepage- then you click on a news item to view it's detail it uses the same template as the homepage - meaning you have a news summary block on the news item page? Is there any way of having a different template for the news detail page?

Thanks

Raj Choudhury  :)
User avatar
lollipop27
Forum Members
Forum Members
Posts: 237
Joined: Wed Sep 12, 2007 4:09 pm
Location: Germany

Re: News Links with different templates -help

Post by lollipop27 »

There is a parameter in the news called detailpage="pagealias"...

There your can link the summary to another PAGE.

For example if you want to display the most recent news on the 'home' page but all the others are on the 'news' page, then you can linkt the summary news on the 'home' page to your actual 'news' page. This 'news' page can then obviously have another template that the 'home' page...

The summary and detail template is to style the summary and detail view itself, for example if you want to change the order of author, date, category etc....

Hope this helps you...
User avatar
raj
New Member
New Member
Posts: 5
Joined: Sun Jan 20, 2008 8:33 pm
Location: UK

Re: News Links with different templates -help

Post by raj »

lollipop27 wrote:
There is a parameter in the news called detailpage="pagealias"...

There your can link the summary to another PAGE.

For example if you want to display the most recent news on the 'home' page but all the others are on the 'news' page, then you can linkt the summary news on the 'home' page to your actual 'news' page. This 'news' page can then obviously have another template that the 'home' page...

The summary and detail template is to style the summary and detail view itself, for example if you want to change the order of author, date, category etc....

Hope this helps you...

Dear Lolipop

Thank you for responding so quickly. But you have to be patient because I am not a developer(I wish I was!!) - I am only a designer trying to understand but I do get stuck alot.

Where can I find the parameter in the news called detailpage="pagealias"...?

Thank you-

This is the site I am working on: http://cms.alexfarr.co.uk/ - It is still is early stages so don't laugh too much!!

Also I have another quick question - as you can see there are too many items in the news summary on the homepage-
How can I limit this so that it only shows 2 or 3? But i do not want this to effect the News Page : http://cms.alexfarr.co.uk/index.php?page=news-2

I hope you can see the problems and help me.

Thanks 
Raj
User avatar
lollipop27
Forum Members
Forum Members
Posts: 237
Joined: Wed Sep 12, 2007 4:09 pm
Location: Germany

Re: News Links with different templates -help

Post by lollipop27 »

Hi... you can always find help with modules and plugins by reading their help page...

go to the Extension > Modules > News page...

There you can find all the paramters

you add them in the tag like this:

{news [b]parameter="value"[/b]}

so add detailpage="pagealias" and add number="2"

that will  show you only 2 news.... you'll have an navigation to the other news then, if you don't want it, remove it with CSS (display: none;) or edit the summary template...
Lexander

Re: News Links with different templates -help

Post by Lexander »

Thank you for your input lollipop27  :D it works!

Cheers! :)
User avatar
raj
New Member
New Member
Posts: 5
Joined: Sun Jan 20, 2008 8:33 pm
Location: UK

Re: Thank you Lollipop

Post by raj »

Hi there

Thank you SO SO Much!!  :) I worked it out!
I do usually read the Help files first but I just got confused.

Still a bit confused about how use different template when you go from Homepage > News Item (It currently uses the homepage template which has the news summary block on it) ?

Thank you

Raj
User avatar
raj
New Member
New Member
Posts: 5
Joined: Sun Jan 20, 2008 8:33 pm
Location: UK

Re: News Links with different templates -help

Post by raj »

All solved !!

Thank you so much for the help-
I hope I will be able to help others that get stuck on this.

:)
Post Reply

Return to “Developers Discussion”