[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] toggling tree loses content components
All right, I'm stuck. Running ic 4.8.5 on RH 7.2 with MySQL 3.23.41.
I created a tree using Mike's example in
http://interchange.redhat.com/archive/interchange-users/2001/msg09061.html
Even after some modification for table differences, it works great.
However, I noticed that when I expand or collapse a branch in the tree, the
displayed page loses content components - for example, anything listed in
Component 4 or Component 5 in the UI Page Edit. I think the problem I'm
having is @@MV_PAGE@@, but I'm not exactly sure how to correct it, or if it
can be corrected. I tried changing @@MV_PAGE@@ to the page name itself -
this still displays the tree right, but I'm still losing the component,
which is a quicklinks menu for logged-in users. I get the feeling I'm
missing something simple but important. I spent a couple hours going
through the archives searching under 'tree', but I'm not any closer to
groping my way around this one. A good kick in the right direction would be
appreciated. Code follows.
<table width="100% cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center"><a href="sp=pfinventory.html" target=_blank>Printer
friendly version</a></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td> </td>
</tr>
<tr>
<td class="secthead" align="left">Inventory</td>
</tr>
<tr>
<td>
<table align="left" cellpadding="2" width="100%">
[tree start=TOP
table=char_inv
master=parent_fld
subordinate=child_fld
autodetect=1
toggle=toggle
memo=memo
collapse=collapse
explode=explode
spacing=4
]
<tr>
<td>
[if-item-param mv_level]
[item-calc]
return ' ' x [item-param mv_spacing];
[/item-calc]
[/if-item-param]
[if-item-param mv_children]
<A HREF="[area href=@@MV_PAGE@@ form='toggle=[item-param code]']">
[item-calc] $Scratch->{memo}{'[item-code]'} ? '-' : '+' [/item-calc]
</A>
[/if-item-param]
[item-param inv_group]
[if-item-param quan]
x [item-param quan]
[/if-item-param]
</td>
</tr>
[/tree]
</table>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>