If you have a gravatar, it will appear next to any comments you post.
Member Login
If you have a gravatar, it will appear next to any comments you post.
Click on the slide!

Website Design

My website design/development portfolio

Here you will find all things web related . Primarily a website design / development portfolio, this section is where you will also find any online banner or logo designs (if / when they are created).

More...
Click on the slide!

Photography

Online Portfolio (Coming Soon)

Coming Soon...

More...
Click on the slide!

Tutorials

A series of step-by-step guides, predominantly using Photoshop.

A series of step-by-step guides, predominantly using Photoshop. Keep checking back as new tutorials are added on a regular basis. Alternatively, subscribe to the RSS feed for the latest articles.

More...
Click on the slide!

Print Design

Anything printed to paper, or any other surface - be it fabric, ceramic, etc. can be found in this section.

Anything printed to paper, or any other surface - be it fabric, ceramic, etc. can be found in this section. PDF files of some design work can be found in the downloads section of the site.

More...
Home Tutorials Joomla Tips Display your website name in the HTML title of your Joomla 1.5 page
Display your website name in the HTML title of your Joomla 1.5 page
( 2 - user rating )
Saturday, 14 June 2008 18:07

thumbnailHave you noticed in Joomla! 1.5 that the HTML title doesn't contain the title of your website? By default, when viewing the Frontpage of your website, the title is 'Welcome to the Frontpage'. This can easily be changed by adding some code to your template's index.php file.


The simplest method of doing this is to log into your administration site and select Extensions > Template Manager. Click on the name of the template you wish to modify and on the Template: [Edit] screen click on Edit HTML, which will open up index.php.

Template Manager

Template Name

Template Edit


Add one of the following blocks of code to the top of the file and save.

This block will display "Site Name - Page Title". For this site's frontpage that would be "stevenminns.com - Welcome to stevenminns.com". 

<?php
 
$mydoc =& JFactory::getDocument();
$mytitle = $mydoc->getTitle();

$conf =& JFactory::getConfig();
$sitename = $conf->getValue('config.sitename');

$mydoc->setTitle($sitename.' - '.$mytitle);
 
?>


This block will display "Page Title - Site Name". Which would be "Welcome to stevenminns.com - stevenminns.com".

<?php

$mydoc =& JFactory::getDocument();
$mytitle = $mydoc->getTitle();

$conf =& JFactory::getConfig();
$sitename = $conf->getValue('config.sitename');

$mydoc->setTitle($sitename.' - '.$mytitle);

?>


For a more detailed explanation of what this code does, take a look at Cory Webb's site (which is the source of the block of code).

 

Trackback(0)
Comments (0)add
This content has been locked. You can no longer post any comment.

busy
 

Feed Me!

Subscribe to the
Tutorials RSS feed
RSS icon

Alternatively, subscribe to email updates by clicking here.

Find It Here!

Sponsored Links

Latest Photoshop Tutorials

Latest Photoshop Tutorials

article thumbnailCircular Pattern Background

Saturday, 05 July 2008

.
article thumbnailA Novel Effect - Part Two

Thursday, 12 June 2008

.
article thumbnailA Novel Effect - Part One

Thursday, 12 June 2008

.

Latest Joomla Tips

Latest Joomla Tips

article thumbnail10 Useful Joomla Extensions

Friday, 11 July 2008

.

Warning: Division by zero in /home/content/s/t/e/stevenminns/html/modules/mod_minifrontpage/helper.php on line 399

Warning: Division by zero in /home/content/s/t/e/stevenminns/html/modules/mod_minifrontpage/helper.php on line 404

Warning: Division by zero in /home/content/s/t/e/stevenminns/html/modules/mod_minifrontpage/helper.php on line 406

Warning: getimagesize(/home/content/s/t/e/stevenminns/html/images/stories/thumbnails/mic-thumb.jpg) [
function.getimagesize]: failed to open stream: No such file or directory in /home/content/s/t/e/stevenminns/html/modules/mod_minifrontpage/helper.php on line 306

Warning: imagecreatefromjpeg(/home/content/s/t/e/stevenminns/html/images/stories/thumbnails/mic-thumb.jpg) [function.imagecreatefromjpeg]: failed to open stream: No such file or directory in /home/content/s/t/e/stevenminns/html/modules/mod_minifrontpage/helper.php on line 319

Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /home/content/s/t/e/stevenminns/html/modules/mod_minifrontpage/helper.php on line 320

Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/content/s/t/e/stevenminns/html/modules/mod_minifrontpage/helper.php on line 322

Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/content/s/t/e/stevenminns/html/modules/mod_minifrontpage/helper.php on line 324

Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/content/s/t/e/stevenminns/html/modules/mod_minifrontpage/helper.php on line 325
article thumbnailReduce the bandwidth usage of your Joomla site

Thursday, 10 July 2008

.
article thumbnail5 Invaluable Tools For Your Website Or Blog

Tuesday, 08 July 2008

.