XF 2.1 Is it possible to insert the contents of a custom template via a template modification?

mark22

Member
So I am successfully regex matching a section of the PAGE_CONTAINER template and I want to replace the matched text with the contents of another custom template I made called 'marksTemplate'

Is this possible?

Is there a simple xf call to pull in the contents of a template?

I've so far tried doing
<xf:include template="marksTemplate" />

but I get an error:
Template errors
  • Template public:marksTemplate: Template public:marksTemplate is unknown (src/XF/Template/Templater.php:618)
 
Last edited:
Top Bottom