All: I'm trying to get the below to show only the first five items, then place a link to the next five if they exist. However it seems that the way I doing this it counts all the records with dtml-in causing me to get a list of 3 when I want five with a link to the next 5 only to get nothing. Any suggestions: <dtml-var standard_html_header> <h2>News & Articles</h2> <dtml-with "news"> <dtml-call "REQUEST.set('my_counter', 0)"> <dtml-in "objectValues('News')" sort=display_order size=5 orphan=0 start=query_start> <dtml-if expr="end_date > ZopeTime() and start_date <= ZopeTime()"> <table cellpadding="10" cellspacing="0" border="0" width="100%" summary="Table used for layout purposes only."> <dtml-call "REQUEST.set('my_counter', my_counter+1)"> <dtml-if sequence-start> <dtml-if previous-sequence> <a href="<dtml-var URL><dtml-var sequence-query>query_start=<dtml-var previous-sequence-start-number>">(Previous <dtml-var previous-sequence-size> Articles)<p></a> </dtml-if previous-sequence> </dtml-if sequence-start> <dtml-if "my_counter % 2"> <tr> <td class="whitebody"> <b><dtml-var title></b><br> <dtml-var abstract><br> <a href="news/<dtml-var id>">FULL STORY</a> </td> </tr> <dtml-else> <tr> <td class="graybody"> <b><dtml-var title></b><br> <dtml-var abstract><br> <a href="news/<dtml-var id>">FULL STORY</a> </td> </tr> </dtml-if> <dtml-if sequence-end> </table><p> <dtml-if next-sequence> <a href="<dtml-var URL><dtml-var sequence-query>query_start=<dtml-var next-sequence-start-number>">(Next <dtml-var next-sequence-size> Articles)</a> </dtml-if next-sequence> </dtml-if sequence-end> </dtml-if> </dtml-in> </dtml-with> <dtml-var standard_html_footer> Thanks, Todd
participants (1)
-
Todd Loomis