Forums / Developer / Does Match[parent_node] work??? / Comment38722
Nicklas Lundgren
Sunday 14 September 2003 12:42:15 pm
Thanks for the fast reply! Everything looks fine in the compiled version - view snippet below.I suspect that the key parent_node is not implemented in the kernel. When trying with Match[node] it works fine. However, I really need to use parent_node...
Any suggestion on workarounds?
Kind Regards,Nicklas Lundgren
-------- else if ( $matchFile == "/node/view/line.tpl" ) { if ( $matchKeys['parent_node'] == '101' and $matchKeys['class'] == '2' ) { return 'design/owndesign/override/templates/newsarticle_line.tpl'; } if ( $matchKeys['class'] == '1' ) { return 'design/owndesign/override/templates/leftmenu_line.tpl'; } if ( $matchKeys['class'] == '2' ) { return 'design/owndesign/override/templates/leftmenu_line.tpl'; } if ( $matchKeys['class'] == '6' ) ...--------
Nicklas Lundgren, Managing Director Novitell AB, Sweden