Forums / Setup & design / Paging / Comment23299

Author Topic

Claudia Kosny

Tuesday 07 November 2006 10:35:38 am

Comment23299

Hi Thomas

You have a couple of errors in your template code that should have given you some error messages in your debug output. Next time check there first or if you did, post the error messages as well.

Anyhow, the example code in the file you linked to is something like this:

   {* Show the next nine small news articles *}
   <table width="100%">
   <tr>
     <td>
     <ul>
   {foreach $articles_array as $key => $article max 9 offset 5}
       <li>
       {node_view_gui view=small content_node=$article}
       </li>
       {delimiter}
       {if eq($key|mod(3),0)}
       </ul></td><td><ul>
       {/if}
       {/delimiter}
   {/foreach}
     </ul>
     </td>
   </tr>
   </table>

You want to show all folders so you need to take out the max and the offset from the foreach. Then replace the article array with your folder array and you are done.

If you compare that to the code you posted you can see that the nesting of the tags is not correct in your code. Also there is a losing delimiter tag to much.

If you still have problem, post again. But then explain what exactly is not working, i.e. what is the output of your code vs what you want to achieve.

Greetings from Luxembourg

Claudia