Hello,
I have some problems. I'm new to CMSMS.
I want to get rid of Print and Return hyperlinks at the end of every news and to delete the "Category: blah blah" line.
I'm doing my web in my native language so I want to translate the title "News" and "Posted by:".
Any ideas how to do that?
And BTW, there's completely useless (at least for my page) icon "Print this page" and I don't know how to remove it from my web. :/
I have already removed search and breadcrumbs by editing my template, but I don't have any thoughts how to do other things I mentioned earlier.
Thanks for any help.
Help with news module
-
pishkus
Re: Help with news module
Just edit the "Detail template" like this:
in your page call the news module like this:
Code: Select all
{if $entry->formatpostdate}
<div id="NewsPostDetailDate">
{$entry->formatpostdate}
</div>
{/if}
<h3 id="NewsPostDetailTitle">{$entry->title}</h3>
<hr id="NewsPostDetailHorizRule" />
{if $entry->summary}
<div id="NewsPostDetailSummary">
<strong>
{eval var=$entry->summary}
</strong>
</div>
{/if}
{if $entry->author}
<div id="NewsPostDetailAuthor">
{$author_label} {$entry->author}
</div>
{/if}
<div id="NewsPostDetailContent">
{eval var=$entry->content}
</div>
Code: Select all
{news lang="lt_LT"}-
pishkus
Re: Help with news module
And also edit the "Summary template" like this:
Code: Select all
<!-- Start News Display Template -->
{foreach from=$items item=entry}
<div class="NewsSummary">
{if $entry->formatpostdate}
<div class="NewsSummaryPostdate">
{$entry->formatpostdate}
</div>
{/if}
<div class="NewsSummaryLink">
{$entry->titlelink}
</div>
{if $entry->author}
<div class="NewsSummaryAuthor">
{$author_label} {$entry->author}
</div>
{/if}
{if $entry->summary}
<div class="NewsSummarySummary">
{eval var=$entry->summary}
</div>
<div class="NewsSummaryMorelink">
[{$entry->morelink}]
</div>
{else if $entry->content}
<div class="NewsSummaryContent">
{eval var=$entry->content}
</div>
{/if}
</div>
{/foreach}
<!-- End News Display Template -->