Friday 05 November 2004 10:08:33 am
Using classIDs, i.e. numbers, in the hash function for Fetch evidently works. However the documentation sometimes uses classNames, eg:
{* Loop through all sub-folders within the "Links" folder. *}
{section loop=fetch( content,
list,
hash( parent_node_id, __NODE_ID_OF_LINKS__,
class_filter_type, include,
class_filter_array, array( 'folder' ),
sort_by, $node.sort_array ) ) }
which uses the className 'folder' instead of numeral 1 classID. Can we use our homegrown classes here by name? There seems scope for confusion here since using 'article' returns nodes with classes only of type article whereas using 'Article' seems to return ALL nodes regardless of class. Likewise, using my own homegrown classes by name seems to return all nodes regardless of class. I cannot find the definition of this function in the php code to see how it works. Could someone more knowledgeable please comment. nigeldodd AT blueyonder.co.uk
|