Wednesday 16 June 2004 4:22:36 pm
Hi there,
I hope this is the right forum to write this post. While using the new eZ3.4, I made a template that uses the reverse_related_object_list. So, I've got a class called Diseases and one more class called Genes. While adding contents to one of them, I add related objects of the other one, eg: colon cancer type 1 <-> MSH2 gene.
Everything works fine, but if I delete one relation between the objects, it is only deleted from the one where I started the relation. I'll try to explain it better: if I create a new relation from colon cancer type 1 (Disease) with another gene and then I trash it, while looking at the disease everything seems to work fine, if I view the gene page I'm still finding the wrong/deleted related object. I've tried clearing all the caches, but it does not work. This is my template code (gene_view_full.tpl):
{* Forward relation *}
{let related_objects=$node.object.related_contentobject_array}
{section show=$related_objects}
<ul>
{section name=ContentObject loop=$related_objects show=$related_objects}
<li><a href={$ContentObject:item.main_node.url_alias|ezurl}>{$ContentObject:item.name}</a></li>
{/section}
</ul>
{/section}
{/let}
{* Reverse relation *}
{let reverse_related=$node.object.current.reverse_related_object_list}
<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}
</ul>
{/let}
Any help is appreciated.
Thanx, Roberto P.S.: Really a great job, but there is a very strange behaviour: while EZP runs fine (maybe a little bit slowly) on a Linux Box (PIII@600MHz with 256Megs and UW2 disks), it really hangs on my Centrino 1.3 notebook with 512Megs and UDMA drive and.... yes... Windows XP! I've used the installers for both machines.
-- In 1968, computing power of two C64 took a rocket to the moon. In 2004 the computing power of an Athlon3000+ is barely enough to run Windows XP... Something has gone wrong!
|