Recurrent problem with Detail template with News Module

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
whyggy

Recurrent problem with Detail template with News Module

Post by whyggy »

Hi,

I know, that some topic already speak about that but I never find the solution.

I just need to display the list of news with the summary and that the link "more ..."
go to an other page to display only the detail on this clicked news.

When I use the detail template tag, nothing happen, and for the page alias tag, 
the user is well redirected to an other page, but It's never display the summary of a news.

If someone could take just 5 minutes to explain, the detail uses.

Promise, If i have got the answer, I will made a tutorial for the news modules after.

Thx a lot,
Whygg.
whyggy

Re: Recurrent problem with Detail template with News Module

Post by whyggy »

I forget to let you know my configuration :

CMSMS 1 beta 4
News 2.1
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm
Location: Finland

Re: Recurrent problem with Detail template with News Module

Post by tsw »

isnt this the default behaviour?

BUT when adding a new news item you need to fill summary and detail fields..

and I really cant recommend running old betas (its almost as risky as running svn) ;)
whyggy

Re: Recurrent problem with Detail template with News Module

Post by whyggy »

Of course the summary and detail fiels are not empty.

But my question is :
Why you click to the "more" link, you can't go to the detail template page ?

I know a lot of people have the same problem...

Thx for your answer tsw .
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm
Location: Finland

Re: Recurrent problem with Detail template with News Module

Post by tsw »

maybe its just me, but I dont understand...

if you call news like {news limit=3 detailpage='news'} you get max 3 news items and if item has detail information there is a more link which is shown in page news..

if you also have detailtemplate="something" and pretty urls it wont work, as detailtemplate option is lost in pretty url. is this what you mean?
whyggy

Re: Recurrent problem with Detail template with News Module

Post by whyggy »

I already try on that way, but I go to the alias page, without my detail content.

On the detail template page do you need to call on other time the news modules or a specific content to display your detail ?
like just {news} or {content} but that one don't work ?

Thx a lot for your help tsw.

Just this little step, what put in the detail template to call the good detail !

Whygg
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Recurrent problem with Detail template with News Module

Post by Dr.CSS »

Are you looking for something like this?...
http://www.multiintech.com/Beta4/index. ... s-releases
whyggy

Re: Recurrent problem with Detail template with News Module

Post by whyggy »

YES !!!

That's it !

Can you please just explain which tag do you put on the first template and which tag do you put on the detail template ?

I know it's a really basic stuff with the news modules, but its didn't work with my tags.

Thx a lot Mark

Whygg
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Recurrent problem with Detail template with News Module

Post by Dr.CSS »

New templates, go to News select summary hilite/copy/paste into notepad/editor, not word or other high end editor...

Code: Select all

<!-- Start News Display Template -->
{foreach from=$items item=entry}
<div class="NewsSummary">
	<div class="NewsSummaryPostdate">
		{$entry->formatpostdate}
	</div>
        <div class="NewsSummaryLink">
	        {$entry->titlelink}
         </div>
	<div class="NewsSummarySummary">
		{eval var=$entry->summary}
	</div>
</div>
{/foreach}
<!-- End News Display Template -->
Save as newsum.tpl in the modules/News/templates folder...
New detail temp....

Code: Select all

	<div id="NewsPostDetailDate">
		{$entry->formatpostdate}
	</div>
<h3 id="NewsPostDetailTitle">{$entry->title}</h3>
	<div id="NewsPostDetailSummary">
			{eval var=$entry->summary}
	</div>
<div id="NewsPostDetailContent">
	{eval var=$entry->content}
</div>
<div id="NewsPostDetailPrintLink">
	{$entry->printlink}
</div>
{if $return_url != ""}
<div id="NewsPostDetailReturnLink">{$return_url}</div>
{/if}
Save as newdetail.tpl same place...
Tag...

Code: Select all

{news summarytemplate='newsum.tpl' detailtemplate='newdetail.tpl'}
older versions...

Code: Select all

{cms_modules module='news' summarytemplate='newsum.tpl' detailtemplate='newdetail.tpl'}
whyggy

Re: Recurrent problem with Detail template with News Module

Post by whyggy »

I'm sorry , I feel like a dummy but it's didn't work...

I try with the news cmsms 1 release, and the News 2.1 module, but when I click on the title link, I just return on the same page, the sumary page.

The link is this one  : index.php?mact=News,cntnt01,detail,0&cntnt01articleid=1&cntnt01detailtemplate=newdetail.tpl&cntnt01returnid=15

So we can see the good detailtemplate parameter. As you said, I put this detail template in the modules/news/templates folder .

So just one last question.

In your page where you apply the template with the news tag, what's its the page content type ?
I already tried with "content" or "news", but nothing changes I always stay on this summary template.

Thankx a lot Mark, really.

W.
whyggy

Re: Recurrent problem with Detail template with News Module

Post by whyggy »

My mistale was that I didn't understand that you need to put in your detail template {content} instead of {news .....} in your list template.

Thx a lot to everybody who help me !
Especially Mark ;)

I will do a tutorial thi week to explain the use of the news module.
W.
Locked

Return to “Modules/Add-Ons”