Forums / Setup & design / limit 8 articles

limit 8 articles

Author Message

J. Field

Wednesday 21 May 2003 7:16:26 pm

Hello, I have the following problem, when I have more than 8 articles in a page, the others do not appear. As I can place in the group navigation arrows so that they appear the other articles in case they exist more than 8? Somebody knows if this value can be changed? anticipated thanks.

John van der Boom

Thursday 22 May 2003 9:38:55 am

In the template look for these fields

1. {let page_limit=8}

and something like:

2. {let list=fetch(content,list,hash(parent_node_id,$node.object.main_node_id,limit,$page_limit,class_filter_type,include,class_filter_array,array(2)))}

As you can see the variable $page_limit gets the value 8, that way only 8 articles are fetched.

Solutions:
1. Change the value of {let page_limit=8} to something else e.g. 10 or
2. Don't use a variable but instead put the value directly in the fetch line.
3. Remove the 1st field and this part of the fetch command (2nd field) "limit,$page_limit,". This way it fetch everything within that node.

More info abou the fetch command look here:
http://ez.no/developer/ez_publish_3/documentation/ez_publish_3/howtos/how_to_fetch_function_parameters_and_examples

Good luck