Author Topic

Lo' F.

Saturday 09 October 2010 7:47:28 am

Comment62462

"

I had a similar problem recently. I solved it using ezhttp operator and a HTML GET parameter, which was the id of the node to display.

"

Hi Kévin! Thanks to your hint I finally got the perfect solution!

Your ezhttp took me here http://doc.ez.no/.../Template-operators/Data-and-information-extraction where I came across this module_params

Made it run this way ..

module_params()|attribute(show)

I got this outcome...

"
Attribute Type Value
module_name string 'content'
function_name string 'view'
parameters array Array(2)
>ViewMode string 'full'
>NodeID string 276
"

and...

{module_params()[parameters][NodeID]}

gave me the node id I was looking for, so I eventually made it work!

{if module_params()[parameters][NodeID]|eq($object.main_node.node_id)}...

Thank you again!

loredanaebook.it