Author
|
Message
|
John Smith
|
Saturday 24 September 2005 5:20:19 am
hi there, Do any one know how to write fetch statement with include and exlude. I am trying to display the list of folders and articles, but I am getting folders, articles and the images related to the articles. I want to exclude that images. Cheers.
|
Clemens T
|
Saturday 24 September 2005 5:54:42 am
Could you post your current fetch() statement?
thanks, Clemens
|
Mazen Alsibai
|
Saturday 24 September 2005 7:19:43 am
{let name=Child children=fetch('content','list',hash(parent_node_id,/*id_of_node*/,class_filter_type,include,class_filter_array,array('/*name of the class*/'))) }
|
John Smith
|
Monday 26 September 2005 1:56:19 am
Thanks for your help. Here is my fetch statement. I want to exclude the images. Only want to fetch folder and articles list. {let sub_children=fetch('content','list',hash(parent_node_id,$Child:item.node_id,limit, class_filter_type, "include", class_filter_array, array( 'folder', 'article' )))} Thanks
|
Mazen Alsibai
|
Monday 26 September 2005 2:02:58 am
{let sub_children=fetch('content','list',hash(parent_node_id,$Child:item.node_id,limit,number_u_want,class_filter_type, 'exclude', class_filter_array, array( 'identifier of image class' )))}
|
John Smith
|
Monday 26 September 2005 2:10:58 am
Thanks I have sorted my problem. It was something wrong with nested loops. But for general knowlegde, Is it possible to use include and exclude simultaneously within the fetch statement. Cheers.
|