Implementing GT MOD with "PAGETITLE" Replacement T

If you've problems with unsupported - non official ;-) - functionalities use this forum please.
Post Reply
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Implementing GT MOD with "PAGETITLE" Replacement T

Post by jsw_nz »

OK...I manually inserted code for 'unofficial' replacement tag "{PAGETITLE}" in:
inc_front/content.func.inc.php

the code looks like this:

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"]); 
 } 

// ------------------------------------------------------------- //
I got it working 'generically' on the page link (returns Home page)
Yet the GT MOD which I have gotten to work in two previous installs is not working with this {PAGETITLE} rep tag....other rep tags it does OK with......

the {DATE_LONG} replacement tag... works fine...
it seems to have problems dealing with the {PAGETITLE} tag:

Wanted to ask what changes in the core might account for this...I am 'kind of comfortable' to using the {PAGETITLE} rep tag with GT MOD...

:D
Cheers,
John
Last edited by jsw_nz on Mon 31. Jan 2005, 11:21, edited 2 times in total.
Jérôme
Posts: 481
Joined: Tue 16. Mar 2004, 10:33
Location: Cologne, Germany
Contact:

Post by Jérôme »

It seems as if the GT MOD is processed before the "page title" MOD… Please try to put the page title code in front of the "date long" MOD. I hope this helps.

Cheerio,
- Jérôme
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Cheers

Post by jsw_nz »

Cheers Jerome.....

thanks, works like a charm....

put the code on line 294...right after {CONTENT} replacement....

All best,
John
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

hi john, hi jérôme,

and what's to do that we can use GT MOD with every RT in wcms system?

Possible?

Also for {NAV_TABLE_COLUMN} etc..?
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Post by jsw_nz »

Hi Cyrano....

I think I remember reading somewhere on forums about someone trying to do NAV_TABLE COLUMN with GT, but with a quick search....did not come up with anything.....but yes...quite elegant to use is with a number of rep tag situations.....(Hats off to Jerome!)

I found it used for a 'guestbook' for Mexican restaurant....where signee gets to see his/her name in Mexican style text...I think Pappnase has the link somewhere..

Cheers ('keep on designing'),
John
Post Reply