Page 1 of 1

Include proven {PAGETITLE} inside content.func.inc.php

Posted: Wed 13. Sep 2006, 05:53
by jsw_nz
Hi Oliver,

Just wanted to suggest that the well documented {PAGETITLE) reptag might be included inside:

content.func.inc.php

in next release - since it is required there IF wanting to render out using Jerome's GT Module. This was your recommeded code:

Code: Select all

// PAGETITLE replacement 
 if( ! (strpos($content["all"],'{PAGETITLE}')===false)) { 
   $content["all"] = str_replace('{PAGETITLE}', $content["struct"][$content["cat_id"]] ["acat_name"], $content["all"]); 
 } 
By pasting this into content.func.inc.php just before the GT code, (approximately line 578) - GT can render the tag - which is really nice.

all best,
-john-