Last active
July 1, 2021 15:49
-
-
Save steveosoule/30d4a0b54dfbd5a0633bbd1167995618 to your computer and use it in GitHub Desktop.
Miva - Load All Pages without sitemap_exclude item
This file contains 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_Feature_TUI_DB" name="l.success" value="Item_Load_Code( 'sitemap_exclude', l.item )" /> | |
<mvt:do file="g.Module_Feature_TUI_DB" name="l.success" value="PageList_Load_Offset_Item_Unassigned( l.item:id, 0, '', '', 999, l.next_offset, l.pages )" /> | |
<mvt:assign name="l.result" value="miva_array_filter_ref( l.pages, 0, l.page, 'l.page:admin EQ 0', l.settings:sitemap_pages )" /> | |
<mvt:foreach iterator="page" array="sitemap_pages"> | |
<h3>&mvte:page:code;</h3> | |
<mvt:comment><!-- Optionally, load & output the page's URL --></mvt:comment> | |
<mvt:do file="g.Module_Feature_URI_DB" name="l.have_uri" value="URI_Load_Page_Canonical(l.settings:page:id, l.settings:uri_info)" /> | |
<mvt:if expr="l.have_uri"> | |
<mvt:assign name="l.settings:page:link" value="g.domain:mmc_output $ '://' $ g.domain:name $ l.settings:uri_info:uri" /> | |
&mvt:page:link;<br> | |
</mvt:if> | |
</mvt:foreach> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment