Mobile sitemaps with MobileJoomla & XMap
- Category: Mobile
I've been working a lot on improving my website lately and I noticed that even with the help of my favorite Joomla extensions XMap and MobileJoomla, I was not able to submit a decent mobile sitemap to Google Webmaster tools.
Here is a small change you can easily implement and as usual, absolutely no hack !
A mobile sitemap is not really different from a regular sitemap, the xml namespace has an extra attribute to tell is's mobile, and so are the links.
XMap is a great component that allows template overrides and we will leverage this functionality to render a sitemap for mobiles.
For the geeks, the changes are explained below:
Changes in /templates/YOUR_TEMPLATE/html/com_xmap/xml/default_class.php
Changes in /templates/YOUR_TEMPLATE/html/com_xmap/xml/default.php