Show Number of item on default templates

4 years 2 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
<thead>
		<tr>

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

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

| [url=http://joomlachannel.com:3qv9ynub]สอบถามปัญหา joomla[/url] | [url=http://www.colorpack.co.th:3qv9ynub]รับทำเว็บ joomla[/url]
Attachments:

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

4 years 2 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.

1 year 5 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.

2 months 2 weeks 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
© 2018 Flexicontent. All Rights Reserved.