diff --git a/README.md b/README.md index 0aefc4f..e9dee35 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ https://backdropcms.org/guide/modules Configuration and usage ----------------------- Administration page is available via *Administration > Configuration > -Search and metadata > Easy XML Sitemap* (admin/config/search/easy_xmlsitemap) +Search and metadata > Easy XML Sitemap* (admin/config/metadata/easy_xmlsitemap) and may be useful for: - anytime (re)build XML sitemap by using button "BUILD SITEMAP NOW"; diff --git a/easy_xmlsitemap.info b/easy_xmlsitemap.info index fea6382..6dff86a 100644 --- a/easy_xmlsitemap.info +++ b/easy_xmlsitemap.info @@ -3,6 +3,6 @@ description = Provides sitemap file in XML format with multilingual attributes. package = SEO backdrop = 1.x type = module -configure = admin/config/search/easy_xmlsitemap -version = 1.0.5 +configure = admin/config/metadata/easy_xmlsitemap +version = 1.0.6 diff --git a/easy_xmlsitemap.module b/easy_xmlsitemap.module index e92a50a..3eb85f5 100644 --- a/easy_xmlsitemap.module +++ b/easy_xmlsitemap.module @@ -29,9 +29,16 @@ function easy_xmlsitemap_permission() { * */ function easy_xmlsitemap_menu() { + + $sub_path = 'search'; + $backdrop_version = explode('.', BACKDROP_VERSION); + if ($backdrop_version[0] == 1 && $backdrop_version[1] > 5) { + $sub_path = 'metadata'; + } + $items = array(); - $items['admin/config/search/easy_xmlsitemap'] = array( + $items['admin/config/' . $sub_path . '/easy_xmlsitemap'] = array( 'type' => MENU_NORMAL_ITEM, 'title' => 'Easy XML Sitemap', 'page callback' => 'backdrop_get_form',