Expand my Community achievements bar.

How to include image URL in sitemap.xml

Avatar

Level 1

The current sitemap is generated in the below format

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

     <script/>
  <url>
<loc>http://localhost:4503/content/we-retail/ca.html</loc>

<lastmod>2016-09-24</lastmod>

</url>

<url>

<loc>http://localhost:4503/content/we-retail/ca/en.html</loc>

<lastmod>2016-09-24</lastmod>

</url>

<url>

<loc>

</url>


is there any way to include the image address as shown in the below format

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

<script/>

<url>

<loc>http://localhost:4503/content/we-retail/ca.html</loc>

<lastmod>2016-09-24</lastmod>

<image:image>

<image:loc>

http://localhost:4503/imageURL

</image:loc>

</image:image>

</url>

<url>

<loc>http://localhost:4503/content/we-retail/ca/en.html</loc>

<lastmod>2016-09-24</lastmod>

<image:image>

<image:loc>

http://localhost:4503/imageURL

</image:loc>

</image:image>

</url>

Any suggestions will be helpful

Thanks

1 Reply

Avatar

Community Advisor

Hi,

How are you generating sitemap? are you using acs common sitemap generate utility?

Which image you need to include for a page in sitemap?



Arun Patidar