[solved] Removing 'Page' from 'Page 1 of 4' in news

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.
Post Reply
Richardo P
Forum Members
Forum Members
Posts: 33
Joined: Fri Aug 17, 2007 8:35 am

[solved] Removing 'Page' from 'Page 1 of 4' in news

Post by Richardo P »

Hi there,

I am trying to remove the test 'Page' from my news template.  The page can be seen here:

http://www.bbmusichouse.co.uk/index.php?page=news

The Page text i want to remove can be seen at the bottom of the page. Instead of

Page 1 of 4 > >>

I would Like

1 of 4 > >>
2 of 4 > >>

etc....

Here is my news template:

Code: Select all

<!-- Start News Display Template -->

{foreach from=$items item=entry}

<div class="NewsSummary">

<h4>{$entry->title}</h4>

{if $entry->formatpostdate}
	<div class="NewsSummaryPostdate">
		{$entry->formatpostdate}
	</div>

{/if}

{if $entry->summary}
	<div class="NewsSummarySummary">
		{eval var=$entry->summary}
	</div>


	<div class="NewsSummaryMorelink">
		
<h3>{$entry->morelink}</h3>
	
</div>

<br />

{else if $entry->content}

	<div class="NewsSummaryContent">
		{eval var=$entry->content}
	</div>
{/if}

</div>
{/foreach}

{if $pagecount > 1}

  <p>

{if $pagenumber > 1}
{$firstpage} {$prevpage} 
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber < $pagecount}
 {$nextpage} {$lastpage}
{/if}

</p>

{/if}

<!-- End News Display Template -->
Would appreciate any pointers on this.  Thanks in advance

Richard
Last edited by Richardo P on Tue Aug 28, 2007 10:18 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Removing 'Page' from 'Page 1 of 4' in news

Post by calguy1000 »

Remove {$pagetext}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Richardo P
Forum Members
Forum Members
Posts: 33
Joined: Fri Aug 17, 2007 8:35 am

Re: Removing 'Page' from 'Page 1 of 4' in news

Post by Richardo P »

Thanks worked a treat.
Post Reply

Return to “CMSMS Core”