Hello guys - I'm working on http://www.shopzero.com and http://www.infoeyes.com and try to implement enumeration for the record using serendipity.
What I did is:
1) in serendipity_functions_inc.php line between 850 - 900 (I made some modification) in section - function serendipity_printEntries(....)
2) find line :
if (!isset(serendiity['GET']['short']) || !$serendipity['GET']['short']) {
---insert after: ---
$counter = 0;
3)--then find line:
foreach ($ents as $x => $entry) {
--and after--
$counter++;
4) find lines :
<hr class="serendipity_title">
<?php
--then after--
$plus=$serendipity['GET']['['page']-1;
if ($plus <= 0) {
$plus=0;
}
$plus15=$plus*15+$counter;
echo $plus15;
--------------------------------
that's all
-Attention: the number 15 above is related to the number of displays of Entries defined in your /templates/default/layout.php number of Entries per page -change it if you have different entries per page ;
if you wish to keep it as a link than move " echo $plus15 few lines behind:
<a href="<?php echo $entryLink; ?>"><?php echo $plus15 blablabla
--------------
that;s it
hope it helps someone
Enumeration - display nuber of entry when print Entries
-
- Regular
- Posts: 5
- Joined: Wed Sep 15, 2004 11:12 pm
- Location: www.infoeyes.com
- Contact: