Thursday 23 July 2009 7:19:03 am
No worries :) I understand your reasons. These are sound. Remember you can use 'relative urls' which while a static string i think is almost the same as a static node id. Both which could regardless be fetched from a settings file variable. I would use settings for these values regardless (re: using a custom settings file, try it) You can fetch a node and it's url and concatenate the node url with your calculated redirect view parameters but ... do this with your own php and the header tag yourself as I am not aware of an existing method which allows you to pass only a nodeid + view_parameters for redirection. Perhaps there is one I'm not aware of (I have not seen it) but it should not be hard to write I've already cited an example for the bulk of the work. Simply augment this to use a php fetch of a content object node and url in place of redirect url string. Update: Look at how existing default kernel modules access settings via php. in ezp/kernel/content (look at these files and search for the string 'ini', your sure to find an example).
Cheers, Heath
[0] http://serwatka.net/blog/fetching_ez_publish_content_objects_with_php
[1] http://pubsvn.ez.no/doxygen/trunk/html/classeZContentObjectTreeNode.html#bd3dd7846ef218d480047e1ac26ed1fa [2] http://pubsvn.ez.no/doxygen/trunk/html/ezcontentobjecttreenode_8php-source.html#l01784
[5] http://pubsvn.ez.no/doxygen/trunk/html/annotated.html
[7] http://pubsvn.ez.no/doxygen/trunk/html/classeZRedirectManager.html [9] http://pubsvn.ez.no/doxygen/trunk/html/classeZHTTPTool.html
Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org
|