Title Tags give SEO advantages

by

Title Tags are hugely important from an SEO perspective because Search Engines use them to identify the major focus of the page.

They are, however, frequently overlooked when coding up new modules as they can be hard to integrate with modularised headers.

Mambo makes it dead easy.

CODE:
  1. function myfunction()
  2. {
  3.   global $mainframe;
  4.   $title = 'whatever';
  5.  
  6.   // Dynamic Page Title
  7.   $mainframe->SetPageTitle( $title );
  8. }

This is a cut down function but it shows you the required global variables and how to pass the new title.

Search engine spiders will rank the title wording in this order: from the first title word to the last word placed in the title. If your industry is competitive you might need to consider grooming the $title that you display so that "noise" words are ommitted.

Other useful mainframe functions

  • addCustomHeadTag can be used if you need to add a link to a javascript class just for the page being served, or a special class
  • prependMetaTag and appendMetaTag which will add information to the standard metatags. The content component uses these when you add meta information via the standard component editing tool.
Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Twitter
  • StumbleUpon
  • Mixx
  • Google Bookmarks
  • Blogplay
  • Add to favorites
  • Sphinn
  • NewsVine
  • Propeller
  • Yahoo! Bookmarks
  • Yahoo! Buzz

One Response to “Title Tags give SEO advantages”

  1. Basicus says:

    Thanks for a well documented peace of work. The script works very well.

Leave a Reply