As designed Can't use xf:include or xf:macro inside certain other xf-tags

Lukas W.

Well-known member
Affected version
2.0.0 Beta 6
Might be as designed, but it is a bit unfortunate. I've just tried to add my own captcha service to the options template, by trying to include my own template to store all code there instead of the template modification. However the system refused the save process, as Line 62: Tag radiorow contains an unexpected child element.. I've tried to add it as a macro instead, but the result stays the same.

Template modification is simply find <xf:html> replace <xf:include template="some_name" /> $0
 
It is as designed. Includes and macros return HTML. Where you're trying to add things isn't an arbitrary HTML area -- it's a list of options and thus requires a particular structure.
 
Top Bottom