News Module

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
scottietom
Forum Members
Forum Members
Posts: 18
Joined: Wed Jun 23, 2010 8:37 am

News Module

Post by scottietom »

Hi there, I have the news module successfully installed and the smarty tags placed on all pages I want to display summary news. Is there a way so whatever page you are on viewing the news that it redirects to one different news page to display detailed information about the specific news item you have clicked on. Thanks.
owr_bgld

Re: News Module

Post by owr_bgld »

reading the module-help would have saved hours of waiting  ???

Ther you can find this line: (optional) detailpage="pagealias" ..........

and please read before writing your next question ::) this: http://forum.cmsmadesimple.org/index.ph ... 661.0.html
scottietom
Forum Members
Forum Members
Posts: 18
Joined: Wed Jun 23, 2010 8:37 am

Re: News Module

Post by scottietom »

Ok and how would I apply this parameter? Under the news module in every sub category e.g. "summary templates, detailed templates". Sorry im new to this.
Fraserm
Forum Members
Forum Members
Posts: 107
Joined: Wed Mar 04, 2009 2:27 pm

Re: News Module

Post by Fraserm »

Add it to your news call:

{news summarytemplate="templateName" detailpage="pageAlias" category="category1,category2"}

Edit: That's only an example call, you might use more or less parameters than that. If you click Extensions | Modules and then click News from the main menu you can see all the parameters available to you.
scottietom
Forum Members
Forum Members
Posts: 18
Joined: Wed Jun 23, 2010 8:37 am

Re: News Module

Post by scottietom »

Thanks for the quick response! Ok so on some of my pages I have {news}  This obviously displays the news from the news module. When users click the topic im wanting to redirect to my news page which in cms made simple is page number 4. In the template for my news page would I need any additional info?

I have looked in the parameters section for the news module and seen that I need to use (detailpage="pagealias") Would I change my pagealias to the page number Im wanting to display the long description for each item of news.

I thought I could do {news detailpage="4"} but this hasnt work.

Appreciate all the help.
Fraserm
Forum Members
Forum Members
Posts: 107
Joined: Wed Mar 04, 2009 2:27 pm

Re: News Module

Post by Fraserm »

The '4' is the page ID rather than the alias.

Click Content | Pages and then click the page with ID 4. When the page loads, click the Options tab. About the 8th heading down the page is a field titled 'Page Alias'. That's the bit of information you need, so note that and insert it into your call, e.g.

{news detailpage="aliasForPageID4"}
scottietom
Forum Members
Forum Members
Posts: 18
Joined: Wed Jun 23, 2010 8:37 am

Re: News Module

Post by scottietom »

Thanks Fraserm. All my news feeds now link the correct page, but now however is not displaying the detailed information for each post. Is there anything that I need to place on my news page for it to bring in the relevent information which is passed to the page? e.g. Click on a new article called "recruitment", then it redirects to my news alias page to display the long content.
Fraserm
Forum Members
Forum Members
Posts: 107
Joined: Wed Mar 04, 2009 2:27 pm

Re: News Module

Post by Fraserm »

Silly question first, the news article you're trying, have you definately entered content for it, rather than just a summary?

Second question, does the template you have selected for your news detail page definately have a default {content} call in it? The news module will attempt to overwrite that default content block with the detail of the news article.

Remember that all templates must have a minimum of that {content} call, although you can go on to call additional blocks if you wish.
Post Reply

Return to “Modules/Add-Ons”