you cant run php code directly inside a template, you'll need to write your self a template operatetor. Witch is basically a wrapper for some php code.
Some examples: http://ez.no/community/contribs/template_plugins
In moving the logic (up the chain-o-command) to php (I think) you might be able to do as you seek.
You might want to take a look at using the Wrap Operator extension which can provide a simple flexible way to write a php code which can return results inside of a template using a custom template operator.
I tried defining a template operator, cf. to
http://ez.no/ezpublish/documentation/development/extensions/template_operator but that failed. Somehow I had to do the include of phpOpenTracker.php and as soon as I included the file, execution stopped and there were tons of error messages. It seems that this include messed up some path.
IMHO the cleaner way to include that is to use an extension and there is one:
http://pubsvn.ez.no/community/trunk/extension/phpopentracker/ but inclusion of that one (I followed doc/manual.txt) brought up the same type of error as above.
However, has anybody successfully used phpopentracker with ez publish as of version 3.9.1? If so, how?
TIA Michael
You must be logged in to post messages in this topic!