MIVASCRIPT: Assign Page Item to All Pages

Miva Knowledge Base
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.
This Miva knowledge base is a bunch of random code and other info used by Scot's Scripts and other developers.

Important Notice: Information here is not intended for public use. Use at your own risk.

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