Share » Forums » General » hate to bother you guys...

hate to bother you guys but...........page limit thingy

hate to bother you guys but...........page limit thingy

Wednesday 30 April 2003 4:18:22 am - 5 replies

Author Message

Paulo Almeida

Wednesday 30 April 2003 7:02:46 am

HI

Use limit in fetch, something like this fetch(content,list,hash(parent_node_id,159,limit,5))

Paulo Almeida

PACPI.COM Internet Consulting
http://pacpi.com

Karsten Jennissen

Wednesday 30 April 2003 7:24:07 am

Also remember to turn off cache while your developing (or clear it every time there is a change). :-)

Karsten

Katie D

Wednesday 30 April 2003 2:00:04 pm

Hmmmm!!! I have in the

\design\demo\override\templates\pagelayout_section_5.tpl

{let folder_list=fetch(content,list,hash(parent_node_id,60,sort_by,array(array(priority))))
news_list=fetch(content,tree,hash(parent_node_id,60,limit,5,sort_by,array(published,false()),class_filter_type,include,class_filter_array,array(2)))}

but I still get more items published on the one page.

I cleared the cache and still the same.

My heads in bits with it Grrrr!!!!

Jan Borsodi

Monday 05 May 2003 4:21:06 am

{let folder_list=fetch(content,list,hash(parent_node_id,60,sort_by,array(array(priority))))
This one will fetch ALL objects for node 60 sorted by priority.
news_list=fetch(content,tree,hash(parent_node_id,60,limit,5,sort_by,array(published,false()),class_filter_type,include,class_filter_array,array(2)))}
while this one fetches max 5 items of class ID 2

Are you sure you're using the correct variable?

could you use:
folder_list={$folder_list|count}
news_list={$news_list|count}

and see what you get?

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Katie D

Wednesday 07 May 2003 10:39:16 am

thanx Jan I will try that.

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

36 542 Users on board!

Forums menu