Wednesday 29 September 2004 1:37:46 am
Hii eveybody..
would u plzz check what's the prob. on that code?? sorry..but i'm new to EZ publish and need ur help..
what i need to do is:
check for the selected node..
get its ID..
make a switch case on that ID..
if ID matches case1: set variable1 = value1 & set var2=val2....etc..
and then when the folder is shosen to be shown..take its variables var1 & var2 which are $left & $right (nodes IDs) and show their content..
the prob.
when i choose any node nothing appears...
NB: the prob. is not in the showing way itself(the bla bla bla part in the above code)...
help..plzz
=============================================================
is the nodeChosen variable contains the whole node object?
{let nodeChosen = fetch(content, node, hash(node_id,$cn)) right=0 left=0 km=222 hy=227}
/*is there something called $node.id coz i wanna check the node by its ID*/
{switch name=ShowArticle match=$node.id}
{case match=222}
{set right = 1124}
{set left = 1125}
{/case}
{case match=227}
{set right = 1132}
{set left = 1133}
{/case}
{/switch}
{/let}
<!--************ That's the first (right)column************************-->
<td valign="top" width="250px">
{let col=fetch(content,tree, hash(parent_node_id,$right,limit,4, sort_by,array(priority, true())))}
bla bla blaaa...
<!--************ That's the second (left )column**********************************-->
<td valign="top" width="250px">
{let col=fetch(content,tree, hash(parent_node_id, $left,limit,4, sort_by,array(priority, true())))}
bla bla bla...
--------------------
i need it urgently.. i really appreciate ur help..
christine..
|