Joomla estate agency component has had the ability to use the title alias in the url since the last major update.
The currently available plugin for xmap still uses the old url structure which just uses the property id.
I noticed this when checking on a site made a couple of years ago which has been fully indexed with the old url structure.
I have uploaded a new version, which, together with the canonical url fix mentioned in the last post could bump up your property site's listings.
The new plugin is here but for those of you with the old vesion installed, you can update it like this.
Browse to /administrator/components/com_xmap/extensions/com_jea.php and open the file
Search for the line $sql and add alias so it looks like this
$sql= "SELECT id, ref, alias FROM #__jea_properties WHERE published = '1' ";</code></p>
<p>Then look a bit further down for a few lines starting with $node under the line $node->id add the line</p>
<p><code>$node->alias = $parent->alias;</code></p>
<p>then we just need to add a hyphen and the alias to the old url which is done in the line starting $node->link</p>
<p><code>$node->link = 'index.php?option=com_jea&view=properties&id='.$item->id.'-'.$item->alias;</code></p>
<p>Check your xml sitemap and your urls should now include the id and alias (check the links work too!)</p>"
Sitemap | Contact Form | ©Copyright 2012 Robert Went