Skip to content

Commit

Permalink
v.1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
findlabnet committed Jan 18, 2017
1 parent dae29d7 commit b7100f2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
4 changes: 2 additions & 2 deletions easy_xmlsitemap.info
Original file line number Diff line number Diff line change
Expand Up @@ -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

9 changes: 8 additions & 1 deletion easy_xmlsitemap.module
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit b7100f2

Please sign in to comment.