Commit 082e517b authored by Nigel McNie's avatar Nigel McNie
Browse files

Output custom tags to represent the view config for Views.



We will read this information at import time to recreate the View.

Other systems will be able to generate and parse this structure too, so
we're not doing anything evil.
Signed-off-by: default avatarNigel McNie <nigel@catalyst.net.nz>
parent 56d48ca5
{include file="export:leap:entry.tpl" skipfooter=true}
{if $ownerformat} <mahara:ownerformat>{$ownerformat|escape}</mahara:ownerformat>
{/if}
<mahara:view>
{foreach from=$viewdata item=column}
<mahara:column>
{foreach from=$column item=blockinstance}
<mahara:blockinstance mahara:blocktype="{$blockinstance.blocktype|escape}" mahara:blocktitle="{$blockinstance.title|escape}">
{foreach from=$blockinstance.config key=fieldname item=fieldvalue}
<mahara:{$fieldname|escape}>{$fieldvalue|escape}</mahara:{$fieldname|escape}>
{/foreach}
</mahara:blockinstance>
{/foreach}
</mahara:column>
{/foreach}
</mahara:view>
<mahara:viewlayout>TODO</mahara:viewlayout>
{include file="export:leap:entryfooter.tpl"}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment