Keyword

Pagination options

  • dudley
  • dudley's Avatar Topic Author
  • Offline
  • New Member
More
11 years 8 months ago #109180 by dudley
Pagination options was created by dudley
Hi,

Using K2 and a gavick module. When I apply pagination to an article, it carries the article lead image / header text / author info and extended fields on every page.

What I need is the lead image and header to appear only on the first page, and the author info and extra fields to only appear on the last. I can't see at *all* how to achieve this.

Any tips, or recommend an extension I could try?
Thanks!!

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago - 11 years 8 months ago #109181 by thumped.com
Replied by thumped.com on topic Re: Pagination options
to show page elements only on the 1st page of a paginated article add this line near the top of item.php
<?php $ls   = JRequest::getVar('limitstart', 0, '', 'int'); ?>

then wrap the HTML you only want to be seen on the 1st page with
<?php if ($ls == '0'): ?>
stuff to be hidden
<?php endif; ?>

Please Log in or Create an account to join the conversation.

  • dudley
  • dudley's Avatar Topic Author
  • Offline
  • New Member
More
11 years 8 months ago #109182 by dudley
Replied by dudley on topic Re: Pagination options
Thanks Pete!

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #109183 by thumped.com
Replied by thumped.com on topic Re: Pagination options
hopefully someone who knows what they're doing will be along soon to explain how to do it properly...

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum