[Tiki-users] Nested {LIST()}: accessing external object_id

Alessandro Martinelli <[email protected]>
Newsgroups gmane.comp.cms.tiki.user
Message-ID <[email protected]>
Hi,

I'd like to know if there is a way of using nested {LIST()} and having 
access to the 'object_id' of the external {LIST()} in the internal one.


Here is an example:

Suppose I have a tracker with fields

     ArticleName (text field)

     ParentArticle (item link field whose values are picked up from 
'ArticleName')

     ArticleContent (text area)


So, if I have the following records

ArticleName    ParentArticle    ArticleContent

"Car"                 ""                     ...

"Blue Car"        "Car"            ...

"Red Car"        "Car"            ...


I'd like to have the following

Car

     Blue Car

     Red Car


And so on. I've tried using something like this:

{LIST()}
   {filter field="tracker_id" content="26"}
   {filter field="tracker_field_parentArticle_text" exact=""}
   {sort mode="tracker_field_parentArticle_asc"}
   *[ArticleTemplate?itemId={display name="object_id"}|{display 
name="tracker_field_articleName"}]
     {LIST()}
       {filter field="tracker_id" content="26"}
       {filter field="tracker_field_parentArticle" 
content="parent_object_id"}
      *[ArticleTemplate?itemId={display name="object_id"}|{display 
name="tracker_field_articleName"}]
     {LIST}
{LIST}


But I can't get it to work. I'm not even sure of what 'parent_object_id' 
is meant for, I've found it here http://doc.tiki.org/PluginList but I 
can't understand it.

Could you please give me some hint?

Please note I'm aware of the existence of the 'structure' Tiki feature, 
but I don't think they provide what I'm looking for.

Thank you

   Alessandro
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.