Dec 28 2006
Making MosTree More Search-Engine Friendly Print
Thursday, 28 December 2006

Apart from Alledia.com, the most popular site we run is JoomlaYellowPages.com, based on the excellent MosTree directory component from Mosets.com.

The site has only been up and running for 4 months, but it has already got some good search engine rankings, positioned as #8 in Google for "Joomla Developers" and #7 in Google for "Joomla Development".

We started to kick around some ideas to make the site more search engine friendly and decided to apply some simple changes to MosTree.

One important aspect of SEO is to show the search engines which items on your page are important. Having text inside the <h1> tag (which means a large heading) will indicate that its more important than text inside a <p> tag (which means ordinary paragraph text). The default MosTree files don't include any of these tags.

We altered the core MosTree files, so that:

  • The directory name is <h1>. This is given the "component heading" class.
  • Category names are <h2>. They are given the "category heading" class.

Adding the tags is a simple as changing:

<td class="componentheading"><?php echo $this->_MT_LANG->TITLE ?></td>

to

<td class="componentheading"><h1><?php echo $this->_MT_LANG->TITLE ?></h1></td>

Assuming that you are using the Bluetree_buiness template to use MosTree as a Yellow Pages, the key files you need to dig into are the following:

  • components/com_mtree/templates/Bluetree_business/Page_index.tpl.php (this controls the directory's frontpage)
  • components/com_mtree/templates/Bluetree/page_subCatIndex.tpl.php (this controls the titles on the category pages)
  • components/com_mtree/templates/Bluetree_business/sub_listingDetails.tpl.php (this controls the actual listing page)

If you are using every aspect of MosTree, you will need to change all of the following files:

templates/bluetree/page_advsearchresults.tpl.php
templates/bluetree/page_confirmdelete.tpl.php
templates/bluetree/page_featured.tpl.php
templates/bluetree/page_index.tpl.php
templates/bluetree/page_listalpha.tpl.php
templates/bluetree/page_mostrated.tpl.php
templates/bluetree/page_mostreviewed.tpl.php
templates/bluetree/page_mylisting.tpl.php
templates/bluetree/page_new.tpl.php
templates/bluetree/page_ownerlisting.tpl.php
templates/bluetree/page_popular.tpl.php
templates/bluetree/page_searchresults.tpl.php
templates/bluetree/page_subcatindex.tpl.php
templates/bluetree/page_toprated.tpl.php
templates/bluetree/sub_listingdetails.tpl.php

templates/bluetree_business/page_index.tpl.php
templates/bluetree_business/sub_listingdetails.tpl.php

templates/bluetree_classifieds/page_index.tpl.php
templates/bluetree_classifieds/sub_listingdetails.tpl.php

We also made changes to components/com_mtree/language/english.php so that the language was more appropriate. "MosTree" became "Joomla Developers, Designers and Companies" and so on.

Finally, the disclaimer: as always, please make these changes on a demo site first. Doing this will probably also require changes to the css files.

Comments (3)Add Comment
Wonderful
written by Traume, March 07, 2007
MosTree is very SEO friendly. Checkout an example at www.adhotshot.com
...
written by steve, March 07, 2007
You've done a very nice implementation of MosTree. Best of luck with the site smilies/smiley.gif

Notice the title - "Making MosTree More Search-Engine Friendly". The developers have done a pretty good job already.
Implementing SEO w/MosTree
written by Traume, March 16, 2007
I've found that OpenSEF works best for my applications including MosTree. I've used others in the past but always with complications.

Traume
AdHotShot.com Webmaster
www.adhotshot.com

Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
smile
wink
laugh
grin
angry
sad
shocked
cool
tongue
kiss
cry
smaller | bigger

busy
 
Joomla SEO Club and Book Logo
Search
Login
Blog Details

Subscribe by RSS

Creative Commons License All blog articles are licensed under a Creative Commons Attribution 3.0 United States License.
Top Comment Posters
Good Web Practices
(114 comments)
Klaus Nitsche
(78 comments)
Brian Teeman
(67 comments)
Hummerbie
(35 comments)
guido
(34 comments)
Ansiklopedi
(30 comments)
Amy Stephen
(29 comments)
Yannick Gaultier
(28 comments)
Cory
(27 comments)
Anthony Olsen
(18 comments)
Blog Categories
Accessibility
Affiliates
Alledia News
Analytics
Book Reviews
Business
Design
Domain Names
Domain Tips & Tricks
Drupal
E-Commerce
Extensions of the Month
General CMS Issues
Interviews
Joomla Affiliates
Joomla 1.5
Joomla Blogs
Joomla Hacks
Joomla Hosting
Joomla News
Joomla People
Joomla SEO eBook
Joomla SEO Rankings
Joomla Sites
Joomla South East
Joomla Templates
Joomla Tips & Tricks
Joomla URLs
Open Questions
PHP
Pay Per Click
Product Reviews
Rants
Scams
Recommended Sites
Search Engine Optimization
Security
SEO
SEO Club
SEO Competition
Site Reviews
Template Clubs
Yellow Pages
Virtuemart
Vlogs
Wordpress
Translate
right