Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Miva - Assign Default Items to All Front-End Pages
<mvt:do file="g.Module_Feature_TUI_DB" name="l.success" value="PageList_Load_All( l.settings:pages )" />
<mvt:foreach iterator="page" array="pages">
<Page_Update code="&mvte:page:code;">
<Secure>Yes</Secure>
</Page_Update>
<mvt:if expr="'EMAIL_' CIN l.settings:page:code EQ 1 OR 'ORDER_' CIN l.settings:page:code EQ 1 OR 'SHIPMENT_' CIN l.settings:page:code EQ 1 OR 'TEMPLATEFEED_' CIN l.settings:page:code EQ 1">
<mvt:comment>
Skip these pages
</mvt:comment>
<mvt:else>
<!-- !@! &mvte:page:code; -->
<PageItem_Assign pagecode="&mvte:page:code;" itemcode="affiliatelink" />
<PageItem_Assign pagecode="&mvte:page:code;" itemcode="breadcrumbs" />
<PageItem_Assign pagecode="&mvte:page:code;" itemcode="buttons" />
<mvt:comment><PageItem_Assign pagecode="&mvte:page:code;" itemcode="category_tree" /></mvt:comment>
<PageItem_Assign pagecode="&mvte:page:code;" itemcode="clientdimensions" />
<PageItem_Assign pagecode="&mvte:page:code;" itemcode="cssui_links" />
<PageItem_Assign pagecode="&mvte:page:code;" itemcode="customerlink" />
<PageItem_Assign pagecode="&mvte:page:code;" itemcode="customfields" />
<PageItem_Assign pagecode="&mvte:page:code;" itemcode="ga_jsencode" />
<PageItem_Assign pagecode="&mvte:page:code;" itemcode="ga_tracking" />
<PageItem_Assign pagecode="&mvte:page:code;" itemcode="global_minibasket" />
<PageItem_Assign pagecode="&mvte:page:code;" itemcode="hdft" />
<PageItem_Assign pagecode="&mvte:page:code;" itemcode="head" />
<PageItem_Assign pagecode="&mvte:page:code;" itemcode="html_profile" />
<PageItem_Assign pagecode="&mvte:page:code;" itemcode="mailchimp" />
<PageItem_Assign pagecode="&mvte:page:code;" itemcode="navbar" />
<PageItem_Assign pagecode="&mvte:page:code;" itemcode="pm_inspector" />
<PageItem_Assign pagecode="&mvte:page:code;" itemcode="prodctgy_meta" />
<PageItem_Assign pagecode="&mvte:page:code;" itemcode="readytheme" />
<PageItem_Assign pagecode="&mvte:page:code;" itemcode="store" />
<PageItem_Assign pagecode="&mvte:page:code;" itemcode="tokenlist" />
<PageItem_Assign pagecode="&mvte:page:code;" itemcode="toolkit" />
<PageItem_Assign pagecode="&mvte:page:code;" itemcode="urls" />
</mvt:if>
</mvt:foreach>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment