Skip to content

Instantly share code, notes, and snippets.

@andrew-serrano
Created September 9, 2020 15:44
Show Gist options
  • Save andrew-serrano/0ee17f97cf0b4e1c452f9dc112c89880 to your computer and use it in GitHub Desktop.
Save andrew-serrano/0ee17f97cf0b4e1c452f9dc112c89880 to your computer and use it in GitHub Desktop.
Script that removes data from the Page > SEO tab. Which includes Page Title and META Fields
<mvt:comment>
| Load all pages
</mvt:comment>
<mvt:do file="g.Module_Feature_TUI_DB" name="l.success" value="PageList_Load_All( l.settings:pages )" />
<mvt:foreach iterator="page" array="pages">
<mvt:comment>
| Update page title
</mvt:comment>
<mvt:assign name="l.settings:page:title" value="''" />
<mvt:do file="g.Module_Feature_TUI_DB" name="l.success" value="Page_Update( l.settings:page )" />
<mvt:comment>
| Remove ALL meta fields
</mvt:comment>
<mvt:do file="g.Module_Root $ '/modules/component/cmp-mv-prodctgy-meta.mvc'" name="l.success" value="METAValue_Delete_Page_All( l.settings:page:id )" />
</mvt:foreach>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment