3214 Posts in 848 Topics by 810 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 763 Views |
-
Using variables within the CMS HTMLField

14 January 2011 at 6:04am
Is is possible to enter a $SiteConfig variable within the text entered in the Content field of the CMS that will display that variable's value when the page is generated? I know how to use the variables in a template, but I wish to insert variables within the content itself.
Thanks for any help that is offered.
Vance
-
Re: Using variables within the CMS HTMLField

14 January 2011 at 11:49am
Hey there welcome to SilverStripe.
Yea there a few ways to do it - best option is to use a shortcode, see;
http://doc.silverstripe.org/shortcodes
http://www.ssbits.com/tutorials/2010/2-4-using-short-codes-to-embed-a-youtube-video/You may find that's not quite what you're after and might want to try this:
http://doc.silverstripe.org/recipes:customising-content-in-your-templatesHope that helps
-
Re: Using variables within the CMS HTMLField

14 January 2011 at 1:21pm
Beautiful, Howard! Works like a charm! Thank you so much!
-Vance
| 763 Views | ||
|
Page:
1
|
Go to Top |

