R
ragtek
Guest
Is there a way to return ONLY the "template content" without the page_container?
I'm aware that i could create a empty template with
and use the containerTemplate variable, but that's IMO a little bit ugly and unnecessary...
I would need this for 3 addons and i don't want to create the same "unnecessary" template in 3 addons
if you don't know what i mean:
my template "foo":
if i use now
return $this->responseView('', 'foo');
it will return the xenforo container with foo text.
but i want to return ONLY <p>foo</p> but as normal html page and not as json response
I'm aware that i could create a empty template with
Code:
{xen:raw $contents}
I would need this for 3 addons and i don't want to create the same "unnecessary" template in 3 addons
if you don't know what i mean:
my template "foo":
Code:
<p>foooo</p>
if i use now
return $this->responseView('', 'foo');
it will return the xenforo container with foo text.
but i want to return ONLY <p>foo</p> but as normal html page and not as json response