Page 1 of 1

Change "News" template

Posted: Tue Apr 10, 2007 11:13 pm
by zerostile
Hallo
where i can find the file for customize the news template ?
For example delete " posted by"

Thanks
Zerostile

Re: Change "News" template

Posted: Wed Apr 11, 2007 6:16 am
by RonnyK
Zerostyle,

under "Content -> News", there are two tabs, holding "Summary template" and "Detail template", there you can change what you want to see.

I'll post my two changed templates below:

Summary:

Code: Select all

<!-- Start News Display Template -->
{foreach from=$items item=entry}
<div class="NewsSummary">
{if $entry->formatpostdate}
	<div class="NewsSummaryPostdate">
		{$entry->formatpostdate}
	             {$entry->titlelink}
	</div>
{/if}
</div>
{/foreach}
<!-- End News Display Template -->
Detail:

Code: Select all

{if $entry->formatpostdate}
	<div id="NewsPostDetailDate">
		{$entry->formatpostdate}
	</div>
{/if}
<h4 id="NewsPostDetailTitle">{$entry->title}</h4>

<hr id="NewsPostDetailHorizRule" />

<div id="NewsPostDetailContent">
	{eval var=$entry->content}
</div>

<div id="NewsPostDetailPrintLink">
	{$entry->printlink}
</div>
{if $return_url != ""}
<div id="NewsPostDetailReturnLink">{$return_url}</div>
{/if}


Ronny

Re: Change "News" template

Posted: Wed Apr 11, 2007 7:37 pm
by zerostile
Tank's a lot Ronny  ;)