Katie D
|
Wednesday 30 April 2003 4:18:22 am
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
|
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
|
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
|