• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 2.0 XF2 Text Field in Options

[xFv]

Previously Cylent1
#1
Hello!
I am making an addon that writes text to a block in adminPC.
I have the block already created and the text field option.

I know I can use this in style properties {{ property('propertyID') }} to write to the block,
but what is the equivalent in XF2?
 
Last edited:

[xFv]

Previously Cylent1
#2
Ok I have figured out the above.
Now I need to be able to use HTML.
and I am guessing thats what this is for? {$content|raw}
but how to use it?
 

Mike

XenForo developer
Staff member
#5
As in without HTML escaping? Your hunch with |raw is correct. There isn't really anything else with how to use it though.
 

[xFv]

Previously Cylent1
#7
@Mike
I figured out using raw HTML in options, but what about in style properties?
I tried this {{ property('My_Property|raw') }} but it does not work.
Any Suggestions?