I think you can use template fetch function. Create your own module. Can be empty one. There (in module folder) you create two files [your_module_name]functioncollection.php and function_definition.php similar to files in content or shop module. There you can define functions you need. After that they will be aviable in template with. fetch('your_module','your_function',hash(your params here))
Hi!
Sounds really good, but I have this problem:
In file function_definition.php you have to define
[...]
'call_method' => array(
'include_file' => 'ezcontentfunctioncollection.php',
'class' => 'eZContentFunctionCollection', 'method' => 'fetchRandomObject' ), [...]
How to include ezcontentfunctioncollection.php?? I tried several paths, but there's always an error ("Failed opening 'ezcontentfunctioncollection.php' for inclusion...).
The file is located in /extensions/functions/modules/functions/. Any help out there...? Thanks, Sebastian