I've implemented the pagination in my news module (annex blog) like written in the handbook here:
http://wiki.cmsmadesimple.org/index.php ... fined_Tags
Code: Select all
{newsindex number='5' start='0'}
{cms_module module='news' number=$news_number start=$news_start}
<a href="{$news_prev_url}">Previous</a>
<a href="{$news_next_url}">Next</a>
I think it must be possible with if statements but I have no idea how to make it work in combination with pagination UDT from the CMSMS handbook. With the search I found the code below and as far I can see/understand is that what I need. Unfortunately I'm a very bad coder, so my question is: is it possible to do something similar for the UDT pagination from the handbook???
Code: Select all
<p>{getstartnum}
{cms_module module='news' start=$startnum number='10' category='news,articles' moretext='More...'}
{if $numitems==0}No news or articles to display.{/if}</p>
<p>{if $pagenum!=1}
<a href="index.php?page=News_Articles&start={$prevpagestart}">«Prev</a> {/if}
{if $pagenum!=1 || $numitems==10} Page {$pagenum} {/if}
{if $numitems==10}<a href="index.php?page=News_Articles&start=$nextpagestart}">Next»</a>{/if}</p>
Many thanks in advance, it's one of the last things I need to do to complete my blog based on CMSMS and the newsmodule.

