Share » Forums » Setup & design » limit 8 articles

limit 8 articles

limit 8 articles

Wednesday 21 May 2003 7:16:26 pm - 1 reply

Author Message

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

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu