Forums / Setup & design / template functions

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

template functions

Author Message

Marko Žmak

Monday 05 July 2004 3:39:09 pm

Is it possible to declare functions in EZ template. If you want to do the same thing in different places but with some different parameters.

Something like this:

{ function myfunction }
...
 (function declaration)
...
(end of function declaration)

...

{myfunction(1)}

...

{myfunction(7)}

If someone could help me out or point me to a section of the documentation about this.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Björn X

Monday 05 July 2004 7:10:04 pm

well yes

operatopers are the things you are looking for...

look into the documentation and read the artivle on how to create a extension with an template operator

Bruce Morrison

Monday 05 July 2004 11:51:01 pm

depending on what you want to do template includes may be of use
http://ez.no/ez_publish/documentation/development/libraries/ez_template/functions/include

These can be passed parameters

Cheers
Bruce http://www.designit.com.au/

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Marko Žmak

Tuesday 06 July 2004 10:51:04 am

Yes, template includes ARE helpfull. Thanks.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth