hello :)
newb so I apologize if this has been asked before - for some reason I could not find it in the search tools. I'm using the
text plugin and the instructions on the page have the following snippet:
To get a copy of rendered text in PHP (i.e. from a button or some other plugin) use:
global $ID;
$ID = $id; //necessary for correct metadata handling
$text = p_cached_output(wikiFN($id),'text');
my tpl_button code was as follows (originally within the tpl_button action block):
case 'text':
global $ID;
$ID = $id; //necessary for correct metadata handling
$text = p_cached_output(wikiFN($id),'text');
echo html_btn('text',$ID,'e',array('do' => $text));
return true;
I found the tpl_button code in main.php and added a new button action called text with the code above but no joy. Any ideas oh wiser members? :)
Thanks!