Share » Forums » General » Pass parameters through...

Pass parameters through attribute_view_gui [Solved]

Pass parameters through attribute_view_gui [Solved]

Friday 10 October 2008 3:08:12 am - 5 replies

Modified on Friday 17 October 2008 7:01:19 am by Jean-Luc Nguyen

Author Message

Alain Sahli

Friday 10 October 2008 6:55:19 am

Hi,

Maybe its because you must first indicate the attribute...

    {attribute_view_gui attribute=$node.data_map.bouquet prix_unite=2}

http://www.wess.ch
eZ Publish Certified developer : http://auth.ez.no/certification/verify/272583

Yannick Komotir

Friday 10 October 2008 8:23:03 am

you can see here http://ez.no/doc/ez_publish/technical_manual/4_0/reference/template_functions/visualization/attribute_view_gui

<|- Software Engineer @ eZ Publish developpers -|>
@ http://twitter.com/yannixk

Nabil Alimi

Saturday 11 October 2008 4:36:17 pm

Jean Luc,

You're passing the parameter through attribute_view_gui but it seems that you want to use the variable in a template that is not the attribute override template.

Well actually i'm wondering... Which template call which ?

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

Jean-Luc Nguyen

Monday 13 October 2008 2:34:06 am

Hello,

It seems like when activating the debug, it is a "different namespace" problem.. What is actually namespace? Is it the view?

http://www.acidre.com

Jean-Luc Nguyen

Tuesday 14 October 2008 5:57:47 am

I solved the problem by creating a global variable:

{set-block scope=global variable=prix_chaine_unite}2{/set-block}

So that in the "child" template, I can display the prix_chaine_unite:

{$#prix_chaine_unite}

The # means that the variable is a global one.

http://www.acidre.com

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu