Page 1 of 1

Custom Replacement Tags - Some words...

Posted: Tue 21. Jun 2005, 08:13
by Oliver Georgi
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

Re: Custom Replacement Tags - Some words...

Posted: Tue 21. Jun 2005, 10:38
by Findus
Hi Oliver,
Oliver 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.
Yes in deed :!:

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

Posted: Thu 30. Jun 2005, 05:02
by iceman
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.

Posted: Thu 30. Jun 2005, 05:15
by iceman
ah found that you need at least 1.1RC4 27.08 version to do this.

Posted: Thu 30. Jun 2005, 10:47
by brans
Man please stop double posting :) Your posts will be read even if you only post them once, the phpwcms forum is well known for its velocity in getting an answer.

As I said: simply update your software.