eZ Community » Forums » General » hate to bother you guys...
expandshrink

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

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

Wednesday 30 April 2003 1:18:22 pm - 5 replies

I posted earlier, but have had no luck. I my news page all I want to do is limit the articles to 5 per page. I found places in tpl's where it mentions pagelimit= etc. but after changing them it still doesn't change. I emptied the cache to eliminate that problem also.

Can any of you point me in the right direction.

I am editing

\design\demo\override\templates\pagelayout_section_3.tpl

I am totally lost with it. In earlier versions it was set in site.ini and it was 'kewl'

Thanx in advance
Katie

Wednesday 30 April 2003 4:02:46 pm

HI

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

Paulo Almeida

Wednesday 30 April 2003 4:24:07 pm

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

Karsten

Wednesday 30 April 2003 11: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!!!!

Monday 05 May 2003 1:21:06 pm

{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?

Wednesday 07 May 2003 7:39:16 pm

thanx Jan I will try that.

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from