Show on first page of results only
2 posts by 2 authors in: Forums > CMS Builder
Last Post: September 8, 2015 (RSS)
By Toledoh - September 6, 2015
Hi Guys,
I want to display certain info on the first page of results only of a list viewer. Can you suggest a way forward?
<?php if ($auction_moduleMetaData['page']!=1): ?>
<p>This should display on the first page only</p>
<?php endif ?>
Tim (toledoh.com.au)
By Damon - September 8, 2015
Hi Tim,
Here is what you could use:
<?php if ($auction_moduleMetaData['page'] == 1): ?>
<p>This should display on the first page only</p>
<?php endif; ?>
This will only display the content if the page equals 1.
Try it out and let me know if you need anything else.
Damon Edis - interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/