Created
September 9, 2020 15:44
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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