21278 Posts in 5728 Topics by 2599 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 758 Views |
-
Variables in HTMLText

20 January 2010 at 1:37am Last edited: 20 January 2010 1:38am
i searched the forum and docs but didn't find any satisfying answer.
I have created custom "Details" Tab where i use (among others) a Size field. Now i would like to access the value in the main content wysiwyg by writing $Size. So that the template-engine replaces $Size with the real value (e.g. XXL).Can this be achieved somehow? I tried $Size, {$Size}, {Details.Size}, <% Details.Size %> and similar but everything failed.
-
Re: Variables in HTMLText

20 January 2010 at 1:37pm
I'm sure I've seen a post on this before, but for the life of me I can't find it
-
Re: Variables in HTMLText

20 January 2010 at 2:26pm
Perhaps you mean something like this:
http://doc.silverstripe.org/doku.php?id=recipes:customising-content-in-your-templates
-
Re: Variables in HTMLText

20 January 2010 at 2:46pm
I never knew there was a recipe for that
If you prefer to read the code, userforms does '$Userform' replacement.
| 758 Views | ||
|
Page:
1
|
Go to Top |



