Custom Replacement Tags - Some words...
Posted: Tue 21. Jun 2005, 08:13
Hello,
I have seen lot of custom replacement tags - maybe you need for your daily work. But one is very stupid - sorry. Never patch core code for these - in most cases this is not neccessary. If you have such custom tags - which have effects only when page rendering process is working - combine all into one (or seperate) file and place these scripts in phpwcms_template/inc_script/frontend_render.
If you need custom functions enhancing phpwcms - neccessary when used in [PHP][/PHP] - place these inside of phpwcms_template/inc_script/frontend_init.
frontend_init - all scripts here are processes before rendering of content,
frontend_render - processed after phpwcms rendering functionality.
Check latest CVS - there is a new functionality included which can be used to fill html head as you might need for such stuff like custom CSS and so on.
Oliver
I have seen lot of custom replacement tags - maybe you need for your daily work. But one is very stupid - sorry. Never patch core code for these - in most cases this is not neccessary. If you have such custom tags - which have effects only when page rendering process is working - combine all into one (or seperate) file and place these scripts in phpwcms_template/inc_script/frontend_render.
If you need custom functions enhancing phpwcms - neccessary when used in [PHP][/PHP] - place these inside of phpwcms_template/inc_script/frontend_init.
frontend_init - all scripts here are processes before rendering of content,
frontend_render - processed after phpwcms rendering functionality.
Check latest CVS - there is a new functionality included which can be used to fill html head as you might need for such stuff like custom CSS and so on.
Oliver