Page 1 of 1

Changing template on "more" link!?!

Posted: Sat Oct 28, 2006 10:15 am
by jmansa
I have a page with 2 columns and in column 1 I have the News Summary... When I click on the "more" link it generates a new page but it is still in 2 columns... Is it possible to change the template when clicking on "more" and if so... How?

Thanks alot

Re: Changing template on "more" link!?!

Posted: Sat Oct 28, 2006 10:33 am
by tsw
iirc, create new page (you can hide it from menu) and add parameter page="pagename" to news module call

hope this helps

Re: Changing template on "more" link!?!

Posted: Sat Oct 28, 2006 10:34 am
by tsw
oh and ofcourse assign new template to that new page ;)

Re: Changing template on "more" link!?!

Posted: Sat Oct 28, 2006 2:28 pm
by jmansa
Ok... I see what you mean, but... Du I put the pagecall in the summary template like this???

Code: Select all

{if $entry->summary}
	<div class="NewsSummarySummary">
		{eval var=$entry->summary}
	</div>

	<div class="NewsSummaryMorelink">
		[{$entry->morelink detailpage="view news"}]
	</div>

{else if $entry->content}

	<div class="NewsSummaryContent">
		{eval var=$entry->content}
	</div>
{/if}
The call to the new newspage should be called when i click [more...]

Re: Changing template on "more" link!?!

Posted: Sat Oct 28, 2006 3:41 pm
by tsw
nope, use

{news number='5' detailpage="pagename"}

as stated in news module help
(optional) detailpage="pagealias" - Page to display News details in. This can either be a page alias or an id. Used to allow details to be displayed in a different template from the summary.