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

Affected version
2.0.0 Beta 6

Lukas W.

Formerly katsulynx
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
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.
 

Chris D

XenForo developer
Staff member
Radom side note, I've just added a template extension points in the next release to make it easier to place your own captcha where you want it.
 
Top