Forums / Developer / Creating custon template object

"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".

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