-
Type: Feature Request
-
Status: Needs Review
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: 5.3.0
-
Component/s: CMS
-
Labels:None
-
Change Log Group:Added
-
Change Log Message:Added ability to generate website sitemap XML file in Google Sitemap format.
-
Story Points:2
-
Copy Issue Key:
-
Patch Instructions:
The commits, which code must be used as base for plan implementation (of course move code from Custom module to Core):
- rEBN16353, rEBN16370, rEBN16606 - adds Google Sitemap functionality
- rCCD15674, rPLS18795 - show specified categories only in debug mode
Plan
- apply modification to kThemesHelper class, that was made in
INP-1229task that used SimpleXML instead regex to parse template meta info in "kThemesHelper::parseTemplateMetaInfo" (don't add "section"), but don't add "section_aware/section_agnostic" to allowed parameters - add the "in_sitemap" to allowed parameters
- normalize value in "in_sitemap" setting using following logic:
- no value (can use "empty" function to detect it) - return boolean true
- value is any of "yes", "true" (as string), "1" - return boolean true
- value is any of "no", "false" (as string), "0" - return boolean false
- anything else - throw an exception
- add the "IncludeInSitemap" column to "Categories" table:
- usual DB type for checkboxes
- defaults to 1
- and "c" and "st" units
- show on category add/edit template (see rEBN16370)
- in the "CategoriesEventHandler::_prepareAutoPage" method based on $template_info['in_sitemap'] value (only if such key present) set the "IncludeInSitemap" field of created category to 1 or 0
- add following system setting to "Configuration > Website > Output" section's "General" sub-section after "CategoryPermissionRebuildMode":
- setting name: SitemapInvisibleCategoriesCatalogVisibility
- title: Sections hidden from Sitemap
- displayed as: radio buttons
- options:
- 1 - "Always Shown in Catalog" (default value)
- 2 - "Shown in Catalog Only in Debug Mode"
- hide categories with "IncludeInSitemap=0" based on "SitemapInvisibleCategoriesCatalogVisibility" setting (compared to code from rCCD15674 we'll be looking at "IncludeInSitemap" column instead of adding "ShowInDebugModeOnly" column):
- in Admin Console category grids (regardless of Special)
- in category dropdown (e.g. parent category selection during category editing OR internal page selection during link adding via CKEditor)
- is blocked by
-
INP-1553 Move out template meta comment parsing to "TemplateCommentParser" class
- Needs Review
- is duplicated by
-
INP-124 Add Ability to Exclude Section from Sitemap
- Closed
-
INP-567 Google Tools Integration
- Closed
- implemented in
-
D120 INP-1470 - Google Sitemap support
- mentioned in
-
Page Loading...