Jan 06
2009

Joomla 1.5 Template Tips & Tricks: Displaying Site Name

Posted by: Jen Kramer

Tagged in: templates , joomla 1.5

In honor of the new Lynda.com Joomla Templates videos that have been released, I'm going to do a series of blog posts on cool tips and tricks for your Joomla templates.

First up, something easy: how to display your site name within the template.

The site name is entered when installing Joomla. It's used in the back end of Joomla, in the administrator screens (typically in a black bar near the top of the page).   It's used if your site is offline in the default "site is offline" display screen as well.

To check what your site name is or to change the name, log into the back end of Joomla, then go to Global Configuration - Site - Site Settings - Site Name.

The site name can be useful in a template. The big advantage is that an end-user with the right permissions can change the site name as they wish, and it will show up wherever you want to use it. And they don't have to know a thing about templates or template code, either -- they can just change the name in the Global Configuration.

The magic line of code is as follows:

<?php echo $this->title; ?>

Copy that and place it wherever you want the site name to appear in your template. Easy! Fun! Tell your friends!

 

Trackback(0)
Comments (0)add comment

Write comment
You must be logged in to post a comment. Please register if you do not have an account yet.

busy
Powered by Azrul's MyBlog for Joomla!
Dekorasyon portalı Mutfak ve Dekorasyon portalı