Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save steveosoule/30d4a0b54dfbd5a0633bbd1167995618 to your computer and use it in GitHub Desktop.

Select an option

Save steveosoule/30d4a0b54dfbd5a0633bbd1167995618 to your computer and use it in GitHub Desktop.
Miva - Load All Pages without sitemap_exclude item
<mvt:do file="g.Module_Library_Utilities" name="l.settings:lastmod" value="Format_RFC3339_DateTime( s.time_t )" />
<mvt:do file="g.Module_Feature_TUI_DB" name="l.result" value="Item_Load_Code( 'sitemap_exclude', l.item )" />
<mvt:do file="g.Module_Feature_TUI_DB" name="l.result" value="PageList_Load_Item( l.item:id, l.excluded_pages )" />
<mvt:do file="g.Module_Feature_TUI_DB" name="l.result" value="PageList_Load_All_Runtime( l.settings:pages )" />
<mvt:foreach iterator="page" array="pages">
<mvt:assign name="l.is_excluded" value="miva_array_search( l.excluded_pages, 1, l.excluded_page, 'l.excluded_page:code EQ l.settings:page:code' )" />
<mvt:if expr="l.is_excluded">
<mvt:foreachcontinue />
</mvt:if>
<mvt:do file="g.Module_Feature_URI_UT" name="l.settings:page:url" value="Store_Page_URL( l.settings:page, l.flags )" />
<url>&mvt:eol:crlf;
<loc>&mvte:page:url;</loc>&mvt:eol:crlf;
<lastmod>&mvte:lastmod;</lastmod>&mvt:eol:crlf;
<changefreq>monthly</changefreq>&mvt:eol:crlf;
</url>&mvt:eol:crlf;
</mvt:foreach>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment