Input Elements and Wrapping Tags
I'm a huge fan of the ability in the latest release to add params under Input elements BUT....
I found I still need to use HTML input elements that I manually create because of tag wrapping. For instance, the input element outputs <span><input/></span>. Is there a way to instruct Logi to not bury elements inside tags?
I vaguely recall there was a hack at one time to use something like nowrap when using the old Include HTML element, but not sure that was ever officially documented.
-
Use a Definition Modifier or put it in your theme modifier. Something like this...
<DefinitionModifier>
<SetAttribute XPath=".//IncludeHtml" NoWrap="True" />
<SetAttribute XPath=".//Label" NoWrap="True" />
</DefinitionModifier>1 -
Thanks for the syntax. I gave this a try with the InputText element and didn't see a change. I find that interesting because per the debug logs I see the snippet below. Ideas?
Modifier File: C:\inetpub\wwwroot\Bootstrap5\_SupportFiles\AppModifier.xml XPath = //InputText SetAttribute NoWrap = True
0 -
Hmmm... doesn't seem to work with Input elements anymore for some reason.
jQuery can unwrap it with a single selector but runs browser-side.$('textarea, input').unwrap();
0
Please sign in to leave a comment.
Comments
3 comments