Miva Merchant Modules and Development
Want to start an online store? We work with you from start to finish, from commerce platform to design to SEO.
Experience counts, and we have a lot.

MIVASCRIPT: Assign Page Item to All Pages

Scot Ranney • December 22, 2023


Useful either as a utility in a module or during install (during install not really recommended except in special cases.)

<MvFOREACH ITERATOR = "l.page" ARRAY = "l.pages" COUNT = "{ [ g.Module_Feature_TUI_DB ].PageList_Load_All_Runtime( l.pages ) }">
	<MvIF EXPR = "{ NOT [ g.Module_Feature_TUI_MGR ].TemplateManager_Page_Assign_Item( l.page, 'ga_tracking' ) }">
		<MvFUNCTIONRETURN VALUE = 0>
	</MvIF>
</MvFOREACH>

https://www.scotsscripts.com/mvblog/mivascript-assign-page-item-to-all-pages.html

mvkb_mivascript