Package: djangocms-page-sitemap
django CMS page extension to handle sitemap customizationSupport Python version:Python 3.9, 3.10, 3.11Supported Django versions:Django 3.2, 4.1, 4.2Supported django CMS versions:django CMS 3.9, 3.11Notedjangocms-page-sitemap 0.8 has been relicensed with BSD license.Notedjangocms-page-sitemap 1.0 dropped compatibility with Python 2 and  Django < 2.2FeaturesSupport for changefreq and priority customisation per-pageOption to exclude a page from the SitemapValues are cacheddjango CMS toolbar integrationAvailable on Divio CloudQuickstartInstall djangocms-page-sitemap:pip install djangocms-page-sitemapAdd toINSTALLED_APPSwithdjango.contrib.sitemaps:INSTALLED_APPS=[..."django.contrib.sitemaps","djangocms_page_sitemap",]Load it into the urlconf, eventually removing django CMS sitemap:...urlpatterns=[path("admin/",admin.site.urls),...path("",include("djangocms_page_sitemap.sitemap_urls")),...]Loadrobots_indextemplatetag and add it to the page in the head tag of the django CMS pages (or in a shared base template):{%loadrobots_index%}...<head><!-- somewhere in the head tag -->{%page_robots%}</head>...If you need to provide a custom sitemap configuration (for example to add more
sitemap classes to it, you can append the sitemap url explicitly:fromdjango.contrib.sitemaps.viewsimportsitemapfromdjangocms_page_sitemap.sitemapimportExtendedSitemapfrommyapp.sitemapsimportMySiteSitemapurlpatterns=[...path("sitemap.xml",sitemap,{"sitemaps":{"cmspages":ExtendedSitemap,"myapp":MySiteSitemap,}),...]django-app-enabler supportdjango-app-enableris supported.You can eitherInstallation & configuration:python-mapp_enablerinstalldjangocms-page-metaAutoconfiguration:python-mapp_enablerenable djangocms_page_metaFully using this package will require some changes that cannot be modified bydjango-app-enabler:Remove any existing sitemap declaration fromurls.py;Load robots tags in the page like outlined above;Run migrations:python manage.py migrateCheck documentation above for details.UsageAfter installing as above, you will be able to tune the sitemap setting for each page.A new menu itemSitemap propertieswill be available in the page toolbar.For each page you will be able to set the following flags / values:Sitemap changefreq (default: the django CMS default)Sitemap priority (default: 0.5)Include page in sitemap (default:True)Setnoindexvalue to page robots meta tagSetnoarchivevalue to page robots meta tagProvide any additional robots meta tag valuespage_robots optionspage_robotsmeta tag accepts the following parameters:page: the page to render robots meta tag (default: current page). Can be
any validpage lookupsite: the current site id (default: current site).SettingsPAGE_SITEMAP_CHANGEFREQ_LIST: List of frequency changesPAGE_SITEMAP_DEFAULT_CHANGEFREQ: Default changefrequency (default: django CMS value -monthly-)PAGE_SITEMAP_CACHE_DURATION: Cache duration: same as django CMS menu cache)History1.3.0 (2023-09-26)FeaturesMigrate to bump-my-version (#96)1.2.0 (2023-05-08)FeaturesUpdate GH actions / linting configuration (#79)Add support for Django 4.2 / django CMS 3.111.1.0 (2022-08-27)BugfixesFix error when populating the toolbar on page types (#67)Fixed serialization issue when trying to upload the addon to Divio Cloud. (#73)Add support for Django 3.2 / django CMS 3.10 (#74)1.0.0 (2020-12-21)FeaturesAdd support for django-app-enabler (#63)Update tooling and drop Python 2 / Django < 2.2 compatibility (#10208)0.8.1 (2020-05-02)Enable django CMS 3.7.2 on python 30.8.0 (2020-01-12)Relicense under BSD license0.7.0 (2019-08-22)Add compatibility with Django 2.2Drop compatibility with Django < 1.11Drop compatibility with django CMS < 3.6Move to django-app-helper0.6.0 (2019-07-13)Drop compatibility with Django < 1.11Drop compatibility with Python 3 < 3.50.5.4 (2019-07-13)Fix error when page_robots is executed outside a requestFix tox for older environments0.5.3 (2019-03-09)Add Django 2.0, 2.1 supportAdd django CMS 3.6 supportApply workaround to avoid triggeringPage.site_iddeprecation warning0.5.2 (2018-04-07)Make robots_extra not required0.5.1 (2018-02-27)Fix error in migration dependencies0.5.0 (2018-02-22)Add Django 1.11 supportAdd django CMS 3.5 supportPackage as Divio Cloud addonAdd support for noindex, noarchive robots meta tag0.4.3 (2019-07-13)Fix error when page_robots is executed outside a requestFix tox for older environments0.4.2 (2019-04-08)Add support for noindex, noarchive robots meta tag0.4.1 (2016-12-02)Add Django 1.10 support0.4.0 (2016-10-26)Drop compatibility with django CMS 3.1 and below, Django 1.7 and below0.3.1 (2015-10-18)Improve defaults0.3.0 (2015-10-18)Add Python 3.5Add option to exclude page from sitemap0.2.0 (2015-08-15)Update to support django CMS 3.1Drop support for Django 1.4, 1.5Add support for Django 1.80.1.0 (2014-08-26)Initial version.