Variables in the extension templates

Author Message

Sergei Chusmah

Wednesday 22 August 2007 5:00:49 am

There are some variables which should be present in the templates (like $language_code or $module_result, etc.) and are not there when I'm viewing my custom extensions templates.

Do I need to set up something for them to be available to my extensions?

Thanks!

André R.

Wednesday 22 August 2007 10:18:49 am

yes, look up kernel/content/view.php for how it's done.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Sergei Chusmah

Thursday 23 August 2007 1:01:28 am

Many thanks!

I'm still having a problem, though...
I have followed view.php and now the vars are available in the content of my extension pages, but I need some of the vars to be present in the header template (called from pagelayout.tpl) and they are not (e.g. languageCode)

By the way, is there some docs about the way pages are built? i.e. from index.php to including modules' code and setting the vars to the templates, etc. it would be great so i could learn these kind of things...

Thanks!

EDIT: i solved the problem, just waas lacking some setVariable statements... But I still would like to see some docs about page biulding mechanism anyway...

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.