Changing template on "more" link!?!

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
jmansa
Forum Members
Forum Members
Posts: 126
Joined: Thu Oct 19, 2006 2:46 pm

Changing template on "more" link!?!

Post 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
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

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

Post by tsw »

iirc, create new page (you can hide it from menu) and add parameter page="pagename" to news module call

hope this helps
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

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

Post by tsw »

oh and ofcourse assign new template to that new page ;)
jmansa
Forum Members
Forum Members
Posts: 126
Joined: Thu Oct 19, 2006 2:46 pm

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

Post 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...]
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

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

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

Return to “Layout and Design (CSS & HTML)”