Forums / General / Object Relations / Comment32094

Author Topic

Roberto Kirschbaum

Tuesday 23 August 2005 11:33:02 am

Comment32094

Yes, it was the cache flushing. ;-|

Now, I've added the "AUTHORS" EOR attribute to
my BOOKS class. It works fine, allowing me to assing AUTHORs to BOOKs.

I then opened some BOOKs and assigned them some authors.

Now I want to access one author and see
all the BOOKs which have this author assigned
to them.

I tried the example code (see below) but it didn't show anything. Of course, I think there's something missing, for example, where should I say that the EOR attribute name I am dealing with is "AUTHORS"? I know that I could spend some more hours trying to find this out, but at this point I'd gladly accept some more help, as I am stuck on this subject for days...

{let reverse_related=$node.object.current.reverse_related_object_list}
{$reverse_related|attribute(show)}

<ul>
{section name=ReverseObject loop=$reverse_related show=$reverse_related}
<li><a href={$ReverseObject:item.main_node.url_alias|ezurl}>{$ReverseObject:item.name}</a></li>
{/section}

{/let}