Saturday 20 March 2004 2:29:24 pm
Hi Karsten There is possibility to achieve what you want by custom template variable passing in templates. This works with nice urls (full view templates) as with content/view/full/<nodeid> urls. But you will have to back port some files of 3.4 (the current trunk in SVN) to the current stable version (3.3-3). The files are
kernel/content/view.php
index.php
lib/ezutils/classes/ezmodule.php lib/ezutils/classes/ezuri.php With this you can add variables to your url as http://my.ez.site/hello/there/(myvar)/myvalue In your template, you access this variable as $view_parameters.myvar which should return myvalue. The good thing is that these variables are also part of the view cache key so you can still use view caching on. hth -paul BTW: the above is part of production server running a mix of 3.3-stable from svn (> 3.3-3) with some mods of 3.4 (the above, delayed indexing, ezobjectrelationlist, ...) and a few of my own kernel patches. I also implemented the extra indexes posted by Emil and using his suggestion for query caching in MySQL 4. In spite of all this, the server runs nicely.
eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans
|