Add possibility to exclude pages from google sitemap.
It would be nice to have a checkbox "Exclude" on tab "Google Sitemaps". F.e. such a structure:
root |- page (shortcut to first subpage) |- subpage
will result in two entries of subpage.html in Google Sitemap, which is not really good.
#2 Updated by Sebastiaan de Jonge over 7 years ago
- Category set to Features
- Status changed from New to Needs Feedback
- Assignee set to Sebastiaan de Jonge
That depends, there are multiple approaches towards this. Meaning a page is a shortcut doesn't necessarily mean it shouldn't be displayed. Not displaying the shortcut itself would result in a missing layer in the tree that will be outputted. There are 2 ways to get the result you are hoping for.
1. Set "hide in menu" for "subpage". This way just the shortcut is displayed (unless you enable display of pages hidden from the menu).
2. Manually hide the page inside the plugin configuration under "Pages > Exclude pages"
#3 Updated by Viktor Livakivskyi over 7 years ago
Thank you for your answer.
I agree on this point with you. And it is correct to display all the pages in normal sitemap mode from the structural point of view, but shortcuts may make no sence in Google Sitemap, since their pathes are resolved to shortcut destination. They make sence only, when point to the pages, that are not already displayed in a Google Sitemap.
First solution can't be nice, since it'll hide the page from all other menues on the website, which may be unacceptable.
Second solution is okay - I missed it. But it also brings additional work for an editor, since he needs to track changes of pages everytime and update "Exclude pages" field.
It would be really nice, if "Google Sitemap" mode will check for duplicates and show pages only once. Sounds logical?