user defined tags - add common tags?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
cwm73
New Member
New Member
Posts: 9
Joined: Mon Sep 01, 2008 2:35 pm

user defined tags - add common tags?

Post by cwm73 »

hi there,

how do you add common tags to user defined tags?

this is what i have:

echo'For information regarding Licensing and/or Production rights for
';
echo'{title} please use the form below, or use our contact page.';

and where the {title} is, i'd obviously want to page title to appear. what do i need to do to make this work, with a minimum of code (i'm more of a designer)?

thanks in advance
User avatar
Augustas
Forum Members
Forum Members
Posts: 241
Joined: Wed Oct 17, 2007 6:09 pm
Location: the world

Re: user defined tags - add common tags?

Post by Augustas »

I guess like this

Code: Select all

global $gCms;
$my_title = $gCms->variables['title'];
http://FollowTheRoad.com/ - living on the road...
http://www.kligys.com/ - asmeninis blog'as...
cwm73
New Member
New Member
Posts: 9
Joined: Mon Sep 01, 2008 2:35 pm

Re: user defined tags - add common tags?

Post by cwm73 »

thanks, but this doesn't work:

Code: Select all

global $gCms;
$my_title = $gCms->variables['title'];

echo'<p>For information regarding Licensing and/or Production rights for <br />';
echo'{title} please use the form below, or use our <a href="contact.html">contact</a> page.</p>';
again, i'm not really a programmer

??
User avatar
Augustas
Forum Members
Forum Members
Posts: 241
Joined: Wed Oct 17, 2007 6:09 pm
Location: the world

Re: user defined tags - add common tags?

Post by Augustas »

Actually, use Global Content Block to implement this. Just create a new GCB with text

For information regarding Licensing and/or Production rights for

{title} please use the form below, or use our contact page.
http://FollowTheRoad.com/ - living on the road...
http://www.kligys.com/ - asmeninis blog'as...
Nick Smart
Forum Members
Forum Members
Posts: 116
Joined: Mon Jul 28, 2008 4:48 pm
Location: Cambridge, UK

Re: user defined tags - add common tags?

Post by Nick Smart »

cwm73 wrote: thanks, but this doesn't work:

Code: Select all

global $gCms;
$my_title = $gCms->variables['title'];

echo'<p>For information regarding Licensing and/or Production rights for <br />';
echo'{title} please use the form below, or use our <a href="contact.html">contact</a> page.</p>';
If you do want to implement it as a UDT you'll need:

Code: Select all

global $gCms;
$my_title = $gCms->variables['title'];

echo'<p>For information regarding Licensing and/or Production rights for <br />';
echo $my_title . ' please use the form below, or use our <a href="contact.html">contact</a> page.</p>';
Nick
Post Reply

Return to “CMSMS Core”