Change "News" template

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"
Locked
zerostile

Change "News" template

Post by zerostile »

Hallo
where i can find the file for customize the news template ?
For example delete " posted by"

Thanks
Zerostile
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Change "News" template

Post 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
zerostile

Re: Change "News" template

Post by zerostile »

Tank's a lot Ronny  ;)
Locked

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