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 defined tags - add common tags?
Re: user defined tags - add common tags?
I guess like this
Code: Select all
global $gCms;
$my_title = $gCms->variables['title'];
Re: user defined tags - add common tags?
thanks, but this doesn't work:
again, i'm not really a programmer
??
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>';
??
Re: user defined tags - add common tags?
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.
For information regarding Licensing and/or Production rights for
{title} please use the form below, or use our contact page.
-
- Forum Members
- Posts: 116
- Joined: Mon Jul 28, 2008 4:48 pm
- Location: Cambridge, UK
Re: user defined tags - add common tags?
If you do want to implement it as a UDT you'll need: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>';
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>';