Categories > TinyButStrong general >

tpl editor

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Lomien
Date: 2010-06-22
Time: 14:25

tpl editor

I want to make editing a template in the database.
I have a variable [data.dir] let it stored the path to images (/images/)
and there is a textarea

TPL:
<img src="[data.dir]123.jpg">
<textarea>[data.dir]</textarea>

Output:
<img src="/images/123.jpg">
<textarea>/images/</textarea>

How do so in the textarea variable is not out?
<img src="/images/123.jpg">
<textarea>[data.dir]</textarea>
By: Skrol29
Date: 2010-06-22
Time: 14:43

Re: tpl editor

Hi,

Try this:
<img src="[data.dir]123.jpg">
<textarea>&#91;data.dir]</textarea>
'&#91;' is the HTML code for '[', and it will avoid the merging.