Forums / Setup & design / template functions

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 Dieding@xrow.de

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

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

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