Custom Replacement Tags - Some words...

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
Post Reply
User avatar
Oliver Georgi
Site Admin
Posts: 9919
Joined: Fri 3. Oct 2003, 22:22
Contact:

Custom Replacement Tags - Some words...

Post 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
Last edited by Oliver Georgi on Thu 8. Mar 2007, 15:50, edited 1 time in total.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Findus
Posts: 48
Joined: Fri 15. Apr 2005, 10:56
Location: Neustadt
Contact:

Re: Custom Replacement Tags - Some words...

Post 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
Image
iceman
Posts: 82
Joined: Tue 13. Jul 2004, 09:44
Contact:

Post 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.
iceman
Posts: 82
Joined: Tue 13. Jul 2004, 09:44
Contact:

Post by iceman »

ah found that you need at least 1.1RC4 27.08 version to do this.
brans

Post 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.
Post Reply