Jaxel
Well-known member
This is what I've been doing to build my pages:
However, the problem with this is that it doesn't just build the template, it builds the template into a page. What I'm trying to do now is a bit different. I am trying to put a module system in place for my portal mod, and I need to be able to store templates into variables. For instance, lets say I have the template below:
I want to build this template, and ONLY this template (with the appropriate $viewParams), and then store the HTML into a variable. This way I can send the variable as a parameter to another template, and then have it built there. Is this at all possible right now?
Code:
return $this->responseView('EWRporta_ViewPublic_Portal', 'EWRporta_Portal', $viewParams);
However, the problem with this is that it doesn't just build the template, it builds the template into a page. What I'm trying to do now is a bit different. I am trying to put a module system in place for my portal mod, and I need to be able to store templates into variables. For instance, lets say I have the template below:
Code:
<xen:if hascontent="true">
<div class="section wikiNav" id="Navigation">
<div class="secondaryContent">
<h3><a href="{xen:link 'full:portal/list'}" class="OverlayTrigger">{xen:phrase wiki_navigation}</a></h3>
<ul>
<xen:contentcheck>
<xen:foreach loop="$pageList" value="$page">
<li>
{xen:raw $page.page_indent}<a href="{xen:link 'full:portal/{$page.page_slug}'}">{xen:raw $page.page_name}</a>
</li>
</xen:foreach>
</xen:contentcheck>
</ul>
<div style="clear: both;"></div>
</div>
</div>
</xen:if>
I want to build this template, and ONLY this template (with the appropriate $viewParams), and then store the HTML into a variable. This way I can send the variable as a parameter to another template, and then have it built there. Is this at all possible right now?