Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Missing mechanism to create apphook specific sitemap #6680
When creating an app that is included on djangocms via apphooks at multiple places I don't see a way on how to provide a proper sitemap.
I should be able to provide a function for elements that provides a custom sitemap.
I image something in the likes of the following
The cms just creates an entry in the sitemap for the page that has the apphook.
Furthermore, the NewsSitemap would have to check if the pages would be reversable. This could be a problem for an app where the respective apphook is not yet assigned to a page.
Summing up: One would be able to generate a sitemap using the current mechanisms, but:
I'm currently using my own Subclass of CMSSitemap to solve those problems which works fine for me, but maybe others might have a similar use case and may profit from a proper apphook centered interface here. Before creating a pull request, I'd like to hear your thoughts.
Edit: And in addition to that, I can't even control if the page containing the apphook appears in the sitemap or not.