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
Custom Replacement Tags - Some words...
- Oliver Georgi
- Site Admin
- Posts: 9919
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
Custom Replacement Tags - Some words...
Last edited by Oliver Georgi on Thu 8. Mar 2007, 15:50, edited 1 time in total.
Re: Custom Replacement Tags - Some words...
Hi Oliver,
if i looking for a new function like a replacement tag. I search in this forum how it works or find an excample. And there are many old information which are no more correct.
So my first designe for replamenttag pdfinclude was wrong, but i hope i change ist to the right way:
http://www.phpwcms.de/forum/viewtopic.php?t=7366
This is an excample for phpwcms_template/inc_script/frontend_render
Fidus
Yes in deedOliver Georgi wrote: 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 i looking for a new function like a replacement tag. I search in this forum how it works or find an excample. And there are many old information which are no more correct.
So my first designe for replamenttag pdfinclude was wrong, but i hope i change ist to the right way:
http://www.phpwcms.de/forum/viewtopic.php?t=7366
This is an excample for phpwcms_template/inc_script/frontend_render
Fidus
Hi.
I've placed some code (replacement tags from the hacks section) in this directory, but it isn't being executed. I searched the whole of my phpwcms installation for files containing text "inc_script" but I can't find any.
So i'm wondering how wcms knows to execute scripts in this directory.
Please help, thanks. I'm running 1.1RC4.
I've placed some code (replacement tags from the hacks section) in this directory, but it isn't being executed. I searched the whole of my phpwcms installation for files containing text "inc_script" but I can't find any.
So i'm wondering how wcms knows to execute scripts in this directory.
Please help, thanks. I'm running 1.1RC4.