Forums / Developer / Change session variables in templates

Change session variables in templates

Author Message

Markus Bader

Monday 30 July 2007 4:26:20 am

Hello everyone!

Is there a way to change session variables within templates; without php code?

Thanks a lot!

Markus

André R.

Monday 30 July 2007 5:17:47 am

Take a look in the contributions area.

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

Markus Bader

Monday 30 July 2007 6:36:18 am

This works fine: http://ez.no/community/contribs/template_plugins/template_session_functionality

Thanks a lot!

//edit: Every session variable you creat with this extension has a "tpl_" prefix. So you have to change the php code of the extension if you want to overwrite standard session variables. Fortunately, this is open source ;).