Last active
January 27, 2026 19:11
-
-
Save steveosoule/30d4a0b54dfbd5a0633bbd1167995618 to your computer and use it in GitHub Desktop.
Miva - Load All Pages without sitemap_exclude item
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: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