Show Number of item on default templates

More
10 years 4 months ago #48182 by lungkao
[attachment=0:uikdj72a]<!-- ia0 -->2014-07-06_23-34-23.jpg<!-- ia0 -->[/attachment:uikdj72a]
Open File category_items.php or category_items_html5.php

After
Code:
<thead> <tr>

add
Code:
<th id="flexi_num" scope="col"><?php echo JText::_( '#' ); ?></th>

and after
Code:
<tr id="tablelist_item_<?php echo $i; ?>" class="<?php echo $fc_item_classes; ?>">
add
Code:
<td><?php echo ++$i; ?></td>
[attachment=1:uikdj72a]<!-- ia1 -->2014-07-06_23-32-18.jpg<!-- ia1 -->[/attachment:uikdj72a]

| สอบถามปัญหา joomla | รับทำเว็บ joomla
Attachments:

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

More
10 years 4 months ago #48189 by micker
good thanks for sharing

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
7 years 7 months ago #67101 by adel2k
Hello,

Excellent code, but once in the 2nd page the account returns to 1 as, is it possible to continue the number of item in the 2nd page?
Example, page 1 number of item 20, click on the 2nd page the account continues at 21,22,23 and not a 1

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

More
6 years 4 months ago #73956 by tamakung
use <?php echo $this->pagination->getRowOffset( $i ); ?> replace <?php echo ++$i; ?>

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 1.105 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline