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

Use GitHub to post feature requests for phpwcms.
Locked
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

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

Post 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-
Locked