[opencms-dev] OpenCms 10.5/11: Change behaviour of SEO configuration file

Stephan Schrader zstephanz at gmail.com
Wed Feb 10 18:21:33 CET 2021


Moin Kai,

you could extend org.opencms.site.xmlsitemap.CmsXmlSitemapGenerator. I
can't remember the exact method to override, but should be quite simple.

Stephan

Am Mi., 10. Feb. 2021 um 16:56 Uhr schrieb Schliemann, Kai <
K.Schliemann at comundus.com>:

> Hi list members,
>
>
>
> anybody ever changed the output of the sitemap.xml file (file type seo
> configuration file)?
>
>
>
> We would like the links to be generated without default-file (index.html).
>
>
>
> So instead of
>
>
>
> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
>
> <url>
>
> <loc>http://localhost:8080/index.html</loc>
>
> <lastmod>2021-02-10T10:34:45+01:00</lastmod>
>
> </url>
>
> <url>
>
> <loc>http://localhost:8080/overview/index.html</loc>
>
> </url>
>
> <url>
>
> <loc>http://localhost:8080/login/index.html</loc>
>
> </url>
>
> <url>
>
> <loc>http://localhost:8080/mercury-demo/index.html</loc>
>
> <lastmod>2021-02-10T10:34:39+01:00</lastmod>
>
> </url>
>
>>
> </urlset>
>
>
>
> We would like to have:
>
>
>
> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
>
> <url>
>
> <loc>http://localhost:8080/</loc>
>
> <lastmod>2021-02-10T10:34:45+01:00</lastmod>
>
> </url>
>
> <url>
>
> <loc>http://localhost:8080/overview/</loc>
>
> </url>
>
> <url>
>
> <loc>http://localhost:8080/login/</loc>
>
> </url>
>
> <url>
>
> <loc>http://localhost:8080/mercury-demo/</loc>
>
> <lastmod>2021-02-10T10:34:39+01:00</lastmod>
>
> </url>
>
>>
> </urlset>
>
>
>
> Where is this behaviour changed?
>
>
>
> Thanks in advance for your help.
>
>
>
> Best regards
>
> Kai
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> https://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.opencms.org/pipermail/opencms-dev/attachments/20210210/030c5da8/attachment.htm>


More information about the opencms-dev mailing list