-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XML Sitemap Generator #1901
Comments
Interesting. PHP-Search, later LuceneSearch, also tried to generate valid xml sitemaps. Since the generating of a valid sitemap can be really, really challenging, we decided to remove this feature from the search bundle in the near future. Together with our OM team we talked a lot about this "challenge" and we also tried to get all the requirements to the drawing board - but we never managed it to put this into practice with pimcore though :)
So, i'm really curious about this new feature. :) |
As this is a broad topic with lots of exceptions and special cases which highly depend on the project, #2528 implements an extendable sitemaps framework based on presta/sitemaps-bundle. While the bundle takes care of the sitemap details as writing XML files in a memory efficient way, splitting files based on google limits and handling entries in multiple sections, Pimcore adds a lightweight framework consisting of generators and pluggable filters/processors which can be used to build sitemaps in a customized way. There's a default |
@maff: so this generator also respect eg. discover virtual documents in a hardlink sub context? |
Yes, the default document generator also traverses into hardlink children (as I mentioned, this can be completely customized by implementing your own generator). As example from the demo document structure: <?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<!-- ... -->
<url>
<loc>http://pimcore5.loc/en/basic-examples</loc>
<lastmod>2014-01-03T08:41:44+00:00</lastmod>
</url>
<url>
<loc>http://pimcore5.loc/en/basic-examples/content-page</loc>
<lastmod>2014-07-21T06:12:58+00:00</lastmod>
</url>
<!-- ... -->
<url>
<loc>http://pimcore5.loc/en/advanced-examples/hard-link</loc>
<lastmod>2013-10-28T10:27:22+00:00</lastmod>
</url>
<url>
<loc>http://pimcore5.loc/en/advanced-examples/hard-link/basic-examples</loc>
<lastmod>2014-01-03T08:41:44+00:00</lastmod>
</url>
<url>
<loc>http://pimcore5.loc/en/advanced-examples/hard-link/basic-examples/content-page</loc>
<lastmod>2014-07-21T06:12:58+00:00</lastmod>
</url>
<!-- ... -->
</urlset> |
Perfect, great work - as usual ;). Thanks @maff! |
/var/sitemaps
The text was updated successfully, but these errors were encountered: