joomla_estate_agencyJoomla 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>"

Category: Joomla

Newsletter Signup

Latest Posts

Google+ Timeline Feed for your Website Google+ Timeline Feed for your Website 2012-05-11 - I was asked earlier today to create a Google+ widget for a website to replace a twitt... More detail
Run Facebook Messenger on Windows Vista Run Facebook Messenger on Windows Vista 2012-04-19 - Facebook has just released it's new messenger for windows but it only runs on Windo... More detail
Translate K2store Product Attributes with Joomfish Translate K2store Product Attributes with Joomfish 2011-11-03 - If you have a K2store and your site is in multiple languages, you might have found th... More detail
French Translations for K2store French Translations for K2store 2011-11-02 - I have been working recently with the K2 component/plugin K2store. As a simple sho... More detail
How I Upgraded to Joomla 1.7 How I Upgraded to Joomla 1.7 2011-09-25 - Inspired by Robert Vining over at www.joomstew.com and the fact that I am building mo... More detail

Twitter Stuff