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

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

Affected version
2.0.0 Beta 6

katsulynx

Well-known member
#1
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
 

Mike

XenForo developer
Staff member
#2
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.