Author Topic

Lo' F.

Tuesday 28 September 2010 4:02:49 am

Comment62054

"

I think you are trying to call a global variable inside a content view, from here you need to use the # character to indicate access to the global scope. So maybe the following code solve your problem:

{if eq($#module_result.node_id, $object.main_node_id)}
  {$node_name|wash}
{else}
  <a href="{$node_url|ezurl}">{$node_name|wash}</a>
{/if}
"

Thank you guys, but this doesn't work too..

I thought that could have worked because in theory that's what I am trying to do...

The only way I can get the current object page from the content view seems to be through its $child,

{if $child.path_array|contains($object.main_node.node_id)}ok{/if}

even though this is not the answer 'cause if there are not children in there it has no sense at all..

loredanaebook.it