How to insert PHP code in templates???

Author Message

Leonardo López

Monday 01 August 2005 1:22:27 pm

is some specific way to put the php code in templates? because i try to do it directly and its doesn't works...

David Eriksson

Tuesday 02 August 2005 12:32:40 am

You can create your own template operators.

See documentation here:
http://ez.no/products/ez_publish_cms/documentation/development/extensions/template_operator

/David

Mikael Johansson

Tuesday 02 August 2005 12:32:43 am

You can build cutom operators and use them, but you're probably trying to do something that shouldn't be done in templates if you need PHP code.

Remember that templates can be cached, so your code might not always be run.

What are you trying to do? Perhaps it is possible in template code? Or maybe it's the kind of stuff that tou'll need to write an extension for anyway?

Mikael Johansson, Sweden

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