Forums / Setup & design / Variables available in each module/view template override

Variables available in each module/view template override

Author Message

Michael Scofield

Thursday 05 June 2008 1:34:02 am

I'm trying to find some reference documentation about the variables available in each module/view, when doing a template override.

For example, I would like to know all the variables I can use inside a template override for "user/register".

For node templates (using "content/view") it's pretty easy because everything is inside the $node variable. But what about the other modules and views?

Is there some writing about that, I couldn't find anything!

Thks in advance
Michael Scofield

Kristof Coomans

Thursday 05 June 2008 3:02:27 am

Hi Michael

You broke out of prison again? ;)

In the template that you want to override, you can use {$DesignKeys:used|attribute(show)} to see the available override conditions.

I recently added an enhancement request to get this mentioned in the documentation somewhere: http://issues.ez.no/12094

As for the variables available in the template, you can use this extension (didn't test it yet but if it does what it says then it's what you're looking for): http://projects.ez.no/show_variables

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Michael Scofield

Thursday 05 June 2008 11:15:19 pm

Hey,

Thank you a lot. The extension was exactly what I was looking for.

Just tested in my Ez Publish installation and worked very fine.

The information about DesignKeys was very helpfull to.

Michael Scofield