http://code.google.com/p/phpwcms/source/detail?r=351
http://forum.phpwcms.org/viewtopic.php?p=119490#p119490
Wiki ToDo http://www.phpwcms-howto.de/wiki/doku.php/
Add output actions to renderer - allows to return specific sections of the page:
index.php?alias&phpwcms_output_action=F-function1|function2--S-SECT1|SECT2.
What the hell?
Sounds interesting. How can we use it? Are there any samples?
Anybody out here? Who already using it?
think there's something to learn about...
output actions to renderer
Re: output actions to renderer
Please have a look: http://forum.phpwcms.org/viewtopic.php?p=119491#p119491
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Re: output actions to renderer
&phpwcms_output_action=F-trim--S-AJAX
working fine.
Oh Whatever Content this is...
but what about is:
&phpwcms_output_action=F-function1|function2--S-SECT1|SECT2
F-
function1
function2
S-
SECT1
SECT2
what could it be?
for me it's too high in order to understand it.
working fine.
Oh Whatever Content this is...
but what about is:
&phpwcms_output_action=F-function1|function2--S-SECT1|SECT2
F-
function1
function2
S-
SECT1
SECT2
what could it be?
for me it's too high in order to understand it.
- marcus@localhorst
- Posts: 815
- Joined: Fri 28. May 2004, 11:31
- Location: localhorst
- Contact:
Re: output actions to renderer
da wirst du wohl verschiedene parts abholen können und durch diverse funktionen laufen lassen... ?! ist doch eindeutig?!
- Oliver Georgi
- Site Admin
- Posts: 9892
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
Re: output actions to renderer
Remember: you have to register any custom function which should be usable this way in var:
If no custom function is defined only default functions are accessible this way:
You see - here only trim and strip_tags would be usable.
Filter functions will accept first parameter only.
So you have to define function - maybe put it in frontend_init:
Code: Select all
$phpwcms['output_function_filter']
Code: Select all
$phpwcms['output_function_filter'] = array('trim', 'strip_tags');
Filter functions will accept first parameter only.
Code: Select all
function my_output_filter($content='') { return $content; }
Code: Select all
<?php
function replaceme($content='') {
return trim(str_replace('****', 'love', $content));
}
$phpwcms['output_function_filter'] = array('replaceme', 'trim', 'strip_tags');
?>
- Oliver Georgi
- Site Admin
- Posts: 9892
- Joined: Fri 3. Oct 2003, 22:22
- Contact: