I set up a custom Sitemap a while back using a Template Based Feed and the code I used in the footer no longer seems to work.
This code was based off SteveoSoule 's example here: https://gist.github.com/steveosoule/...3bbd1167995618
I have no idea when or why it stopped working.
Any help or insights would be appreciated.
This code was based off SteveoSoule 's example here: https://gist.github.com/steveosoule/...3bbd1167995618
I have no idea when or why it stopped working.
Code:
<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">
<mvt:do file="g.Module_Feature_URI_DB" name="l.have_page_uri" value="URI_Load_Page_Canonical(l.settings:page:code, l.settings:page_info)" />
<mvt:if expr="l.have_page_uri">
<url>&mvt:eol:crlf;
<mvt:assign name="l.settings:page:link" value="'https://' $ g.domain:name $ l.settings:page_info:uri" />
<loc>&mvt:page:link;</loc>&mvt:eol:crlf;
<lastmod>&mvt:global:current_date;</lastmod>&mvt:eol:crlf;
<changefreq>monthly</changefreq>&mvt:eol:crlf;
</url>&mvt:eol:crlf;
</mvt:if>
</mvt:foreach>
Comment