reddyink
11-30-2007, 01:24 AM
I worked on pagination code for module with help from internet. In php page I have correct count from db and all the values to display pagination for module. like this PREV2 1 2 3 4 NEXT2. It is displaying correctly.
How can I get that values within module along with my results displaying only 2 records per page. Right now it is displaying PREV2 1 2 3 4 NEXT2 this on top of index page since this is in php page and module is displaying all records down as normal. How can I integrate?
When I put below sample code in template
<td class="smallfont">
<if condition="$page !== 1">
$pageprev = $page--
<a href=\"$PHP_SELF&page=$pageprev\">PREV".$limit."</a>
<else />
PREV $limit
</if>
</td>
The link PREV2 1 2 3 4 NEXT2 is displaying on top of module since module template starts with <tr><td>my code</td></tr>.
Can you please help me what is best way to display records in module according to limit that I specified. The display of pagination is working correctly with page number links with limit 2 value. Only I have to display within module with proper no of records per page.
Please help me on this . I have been working on this from 2 days. I hate to give up because content is there only I am not getting how to display within module.
Or suggest me with any other code that we used pagination within modules. I tried create new templatadv_dyna_module_mycatbits_pagenav
by following directions here http://www.vbadvanced.com/forum/showthread.php?p=84576#post84576but no success.
I really appreciate any help.
How can I get that values within module along with my results displaying only 2 records per page. Right now it is displaying PREV2 1 2 3 4 NEXT2 this on top of index page since this is in php page and module is displaying all records down as normal. How can I integrate?
When I put below sample code in template
<td class="smallfont">
<if condition="$page !== 1">
$pageprev = $page--
<a href=\"$PHP_SELF&page=$pageprev\">PREV".$limit."</a>
<else />
PREV $limit
</if>
</td>
The link PREV2 1 2 3 4 NEXT2 is displaying on top of module since module template starts with <tr><td>my code</td></tr>.
Can you please help me what is best way to display records in module according to limit that I specified. The display of pagination is working correctly with page number links with limit 2 value. Only I have to display within module with proper no of records per page.
Please help me on this . I have been working on this from 2 days. I hate to give up because content is there only I am not getting how to display within module.
Or suggest me with any other code that we used pagination within modules. I tried create new templatadv_dyna_module_mycatbits_pagenav
by following directions here http://www.vbadvanced.com/forum/showthread.php?p=84576#post84576but no success.
I really appreciate any help.