[xFv] Well-known member Sep 20, 2017 #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: Sep 20, 2017
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?
[xFv] Well-known member Sep 20, 2017 #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?
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 Sep 20, 2017 #3 I'm afraid I don't understand what you're asking at all.
[xFv] Well-known member Sep 20, 2017 #4 Mike said: I'm afraid I don't understand what you're asking at all. Click to expand... I was creating a addon and needed to know how to write raw in a block in adminpc.
Mike said: I'm afraid I don't understand what you're asking at all. Click to expand... I was creating a addon and needed to know how to write raw in a block in adminpc.
Mike XenForo developer Staff member Sep 20, 2017 #5 As in without HTML escaping? Your hunch with |raw is correct. There isn't really anything else with how to use it though.
As in without HTML escaping? Your hunch with |raw is correct. There isn't really anything else with how to use it though.
[xFv] Well-known member Sep 20, 2017 #6 Mike said: As in without HTML escaping? Your hunch with |raw is correct. There isn't really anything else with how to use it though. Click to expand... I have figured it though. Thanks you Mike!
Mike said: As in without HTML escaping? Your hunch with |raw is correct. There isn't really anything else with how to use it though. Click to expand... I have figured it though. Thanks you Mike!
[xFv] Well-known member Sep 20, 2017 #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?
@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?
Mike XenForo developer Staff member Sep 22, 2017 #8 "|raw" is a filter, so it goes at the end: property('x')|raw.