Xmap upgraded to J4. Over the years I have kept this up to date with the current Joomla releases as I have tried all the other sitemap extensions and this is the only one I like.

This is a transitional release which also works with 3.9.20 so the component still uses J3 MVC. 

You will also need the upgraded content plugin. I don't use any of the other plugins so they have not been upgraded.

com_xmap-2.3.20-j4.zip

plg-xmap-com_content-2.0.8-j4.zip

Changelog

  • fixed squeezebox used in admin - changed to modal
  • installer script to remove outdated files (does not remove old language files)
  • tidied up sitemaps view and modal sitemaps view
  • removed all Mootools dependencies - now mostly using vanilla javascript except for sorting the menus
  • Ensure there is always an Itemid
  • lots of database code updates in line with best practice
  • fixed jquery not loading on J4 for xml view as the path has changed
  • moved more css into files
  • removed sidebar on J4 and added submenus
  • New menu type - xml sitemap
  • Database error in plugin

 

Notes

If you want your xml sitemap to have url of sitemap.xml then you will need to modify .htaccess add the following in the custom redirects section. NOTE: This does not always work, depending on your site configuration. Replace the number for your sitemap on the last line where is it says id=1 (Hint: you can use a different, more inclusive sitemap for google than the html one you show to visitors)

# sitemap
RewriteCond %{REQUEST_URI} ^/sitemap.xml
RewriteRule .* /index.php?option=com_xmap&view=xml&id=1 [L]

This is necessary since this is not a physical file.

If you are using sh404SEF, create a new sef url called sitemap.xml The non-sef url is the one shown on the site xml view by clicking on the xml in the backend. It should be the same as the one in the rewrite rule above.

Due to the way J4 does the routing this is only working for J3. For J4 add the sitemap to robots.txt and submit the xml page to search engines.

 

TODO

  • Add update server
  • Images sitemap
  • Filters in the modal view
  • put all javascript/css in files (csp)
  • finish upgrading database code
  • fix display in admin - it all works, but looks ugly
  • not loading xmap css

 

License

GNU General Public License version 2 or later; see GPLv2