Creating custon template object

Author Message

Jose Mourinho

Thursday 12 July 2007 4:40:21 am

Hello all
How can i create custom object with tempalte language?
somthing like this - {def $objects = fetch( 'content', 'ez')}

10x all

André R.

Thursday 12 July 2007 6:15:26 am

That would have to be something like:
{def $objects = fetch( 'my_something', 'ez')}

take a look in kernel/content/function_definition.php, basically you'll have to have a similar file in your own module extension (my_extension/modules/my_module/function_definition.php).

But you can of course return a object from a template operator as well.

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

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