Sunday 12 January 2003 3:53:46 am
Why "list" or "tree" functions only return folders? I have a site structure like this
Main Node
--Folder 1 (class_id=21; contentclass_id or class_type=1)
----Article1 (class_id=33; contentclass_id=2)
----Article2 (class_id=34; contentclass_id=2)
----Folder 1.1 (class_id= 35; contentclass_id=1) ----Folder 1.2 (class_id=36; contentclass_id=1)
If I try:
{let mylist=fetch(content, list, hash(parent_node_id, 21, sort_by, array(published,false())))}
{section name=mysection loop=$mylist}
...
{/section} {/let}
I only receive two items: Folder 1.1 and Folder 1.2. It should return four items, two articles and two folders.
Well, I will use a filter: {let mylist=fetch(content, list, hash(parent_node_id, 21, sort_by, array(published,false()),class_filter_type, include, class_filter_array, array(2)))} And I receive nothing ???? If I use any combination of filter (include, exclude, etc) I receive nothing. How can I receive a list of only article objects in my Folder 1 using the template function "fetch"?
Thanks in advance Adolfo Barragán
|