including Smarty tags in a selflink

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
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

including Smarty tags in a selflink

Post by jmcgin51 »

I want to do something like this:
{cms_selflink page='80' text='© {custom_copyright} My Business Name'}

which would produce text something like:
© 2004 - 2007 My Business Name

and would link to a page that fully details my copyright statement

BUT, putting a Smarty tag ({custom_copyright}) inside the cms_selflink tag gives a Smarty error.

can this be done?  how?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: including Smarty tags in a selflink

Post by calguy1000 »

{capture assign='junk'}@ {custom_copyright} My Business Name{/capture}
{cms_selflink page='80' test="$junk"}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: including Smarty tags in a selflink

Post by Nullig »

I think calguy meant:

{cms_selflink page='80' text="$junk"}

Nullig
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: including Smarty tags in a selflink

Post by jmcgin51 »

cool - thanks guys!
Post Reply

Return to “CMSMS Core”