tessguefen
12/2/2014 - 3:31 PM

Generate a sitemap -- Set headers to Content-Type to application/xml // Change urls as necessary

Generate a sitemap -- Set headers to Content-Type to application/xml // Change urls as necessary

<urlset xmlns="http://www.google.com/schemas/sitemap/0.84" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84 http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
    <url>
        <loc>https://&mvt:global:domain:name;/</loc>
        <priority>1.0</priority>
        <changefreq>daily</changefreq>
    </url>
    <mvt:foreach iterator="product" array="products">
        <mvt:item name="customfields" param="Read_Product_Code( l.settings:product:code, 'prodUrl', l.settings:prodUrl )" />
        <url>
            <loc>https://&mvt:global:domain:name;/&mvt:prodUrl;.html</loc>
            <priority>0.5</priority>
            <changefreq>daily</changefreq>
        </url>
    </mvt:foreach>
    <mvt:foreach iterator="category" array="categories">
        <url>
            <loc>https://&mvt:global:domain:name;/&mvt:category:code;.html</loc>
            <priority>0.5</priority>
            <changefreq>daily</changefreq>
        </url> 
    </mvt:foreach>
</urlset>