Ordermanager/views/smarty/admin/export-templates/XML-Vorlage.tpl

38 lines
1.3 KiB
Smarty

[{assign var="sLineSeparator" value="@new_line@"}]
[{*** special chars ***************}]
[{* new line => "@new_line@" *}]
[{* tab => "@tab@" *}]
[{* white space => "@space@" *}]
[{*********************************}]
[{if contentType == 'header'}]
[{block name="d3ordermanager_exporttemplate_xml_header"}]
[{if $aFieldList}]
[{literal}]<?xml version="1.0" encoding="UTF-8"?>[{/literal}][{$sLineSeparator}]
<ORDERLIST>[{$sLineSeparator}]
[{/if}]
[{/block}]
[{/if}]
[{if contentType == 'item'}]
[{block name="d3ordermanager_exporttemplate_xml_content"}]
[{if $aContentList}]
@tab@<ORDER id="[{$aContentList.oxid}]">[{$sLineSeparator}]
[{foreach name="contentlist" key="contentlistkey" from=$aContentList item="sContent"}]
@tab@@tab@<ORDERFIELD name="[{$contentlistkey}]">[{$sLineSeparator}]
@tab@@tab@@tab@[{$sContent}][{$sLineSeparator}]
@tab@@tab@</ORDERFIELD>[{$sLineSeparator}]
[{/foreach}]
@tab@</ORDER>[{$sLineSeparator}]
[{/if}]
[{/block}]
[{/if}]
[{if contentType == 'footer'}]
[{block name="d3ordermanager_exporttemplate_xml_footer"}]
[{if $aFieldList}]
</ORDERLIST>
[{/if}]
[{/block}]
[{/if}]