Help with news module

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Mindaugas

Help with news module

Post by Mindaugas »

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.
pishkus

Re: Help with news module

Post by pishkus »

Just edit the "Detail template" 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>
in your page call the news module like this:

Code: Select all

{news lang="lt_LT"}
pishkus

Re: Help with news module

Post by pishkus »

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

Return to “CMSMS Core”