Advertisement

Browser title - how do add website's name

General questions relating to Joomla! 1.5 There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Locked
User avatar
thepisu
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Tue Jul 24, 2007 12:00 pm
Location: Italy
Contact:

Browser title - how do add website's name

Post by thepisu » Wed Aug 15, 2007 6:17 pm

Hi, searched the forum for this, but without luck...

I just installed Joomla 1.5 RC1 online (http://www.thepisu.tk), all feels ok, but I can't find how to add the website's title on the browser title bar....

In example: if the page is named "Blog", and my site name is "thePisu website", I want that the browser title become "thePisu website - Blog". That was default in Joomla 1.0.x.... There is this feature in 1.5?

Thanks,
Pisu
Image
Pisu - VirtueMart Development Team Member
Team VMItalia (Supporto Italiano VirtueMart)
http://www.vmitalia.net

Advertisement
eheimer
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Aug 17, 2007 8:32 pm

Re: Browser title - how do add website's name

Post by eheimer » Fri Aug 17, 2007 8:49 pm

I noticed the same problem.  Here's what I found.

In the file components\com_content\views\view.html.php around line 84, change the line:

$document->setTitle($article->title);

to

$document->setTitle($mainframe->getCfg('sitename'). ' - ' .$article->title);

That worked for me.

User avatar
thepisu
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Tue Jul 24, 2007 12:00 pm
Location: Italy
Contact:

Re: Browser title - how do add website's name

Post by thepisu » Sat Aug 18, 2007 9:55 pm

You forgot the subdir "article", but it works!! Thanks!

Now, I think that this should be a default behavior of Joomla, not only for article title, but also for menu items...
Image
Pisu - VirtueMart Development Team Member
Team VMItalia (Supporto Italiano VirtueMart)
http://www.vmitalia.net

johninspain
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Wed Aug 29, 2007 6:09 pm

Re: Browser title - how do add website's name

Post by johninspain » Sat Sep 01, 2007 2:18 pm

I had the same problem. Used your suggestion and it worked - Brilliant.

Unfortunately my home page still put the annoying message "Welcome to the Front Page" in the title bar.

Any ideas? Am I maybe looking at a template issue? Where can you set the page title in 1.5?

Thanks for your help. John
Last edited by johninspain on Sun Nov 25, 2007 4:41 pm, edited 1 time in total.

User avatar
thepisu
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Tue Jul 24, 2007 12:00 pm
Location: Italy
Contact:

Re: Browser title - how do add website's name

Post by thepisu » Sat Sep 01, 2007 8:19 pm

johninspain wrote: Unfortunately my home page still put the annoying message "Welcome to the Front Page" in the title bar.
Reporting from this post:
http://forum.joomla.org/index.php/topic ... #msg940718
To change "Welcome to the Frontpage", go to Menus > Main Menu. Click 'Home', expand 'Parameters - System' and edit 'Page Title'.
And it works  ;)
Image
Pisu - VirtueMart Development Team Member
Team VMItalia (Supporto Italiano VirtueMart)
http://www.vmitalia.net

teniemi
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Fri Apr 13, 2007 9:51 am

Re: Browser title - how do add website's name

Post by teniemi » Thu May 22, 2008 1:13 pm

If you don't want to brake your Joomla installation you could put this into index.php of your template, it has to before <head></head> section:

Code: Select all

$this->setTitle($mainframe->getCfg('sitename'). ' - ' .$this->title);

ojodejose
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Tue Jul 08, 2008 11:38 am

Re: Browser title - how do add website's name

Post by ojodejose » Sun Mar 08, 2009 2:03 pm

Teniemi you're the man, it just worked!

User avatar
jacoot
Joomla! Explorer
Joomla! Explorer
Posts: 311
Joined: Thu Feb 05, 2009 10:27 am

Re: Browser title - how do add website's name

Post by jacoot » Sun Mar 08, 2009 2:15 pm

really it deserve change

FotoHijinx
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sun Dec 07, 2008 7:53 am

Re: Browser title - how do add website's name

Post by FotoHijinx » Sun Mar 15, 2009 8:44 am

I tried Teniemi's solution:
teniemi wrote:If you don't want to brake your Joomla installation you could put this into index.php of your template, it has to before <head></head> section:

Code: Select all

$this->setTitle($mainframe->getCfg('sitename'). ' - ' .$this->title);
And this worked except I have an"&" in my website title and it is showing in the browers as & - how can I show it as: &

Cheers
Irene

User avatar
Ghonjez
Joomla! Exemplar
Joomla! Exemplar
Posts: 8770
Joined: Sat Oct 18, 2008 3:02 am
Location: Mars
Contact:

Re: Browser title - how do add website's name

Post by Ghonjez » Mon Mar 16, 2009 3:16 pm

Hi...

For easiest way, use TitleManager extensions :
http://extensions.joomla.org/extensions/3521/details

I've tried it and fine work.
Good luck. :)

User avatar
basic612
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 176
Joined: Fri Sep 02, 2005 3:41 am

Re: Browser title - how do add website's name

Post by basic612 » Sun Mar 22, 2009 11:39 pm

FotoHijinx wrote: And this worked except I have an"&" in my website title and it is showing in the browers as & - how can I show it as: &
Untested but should work:

Code: Select all

$this->setTitle(html_entity_decode($mainframe->getCfg('sitename'). ' - ' .$this->title));
"A lie can travel halfway around the world while the truth is putting on its shoes”, said Mark Twain. Modern communications help the lie travel even further, although Velcro having replaced lace-ups, the truth is not all that slow anymore in getting ready – mainly thanks to the internet.
Dr S Bleher

keight
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri May 02, 2008 1:11 pm

Re: Browser title - how do add website's name

Post by keight » Sat Apr 04, 2009 10:04 am

basic612 wrote:Untested but should work:

Code: Select all

$this->setTitle(html_entity_decode($mainframe->getCfg('sitename'). ' - ' .$this->title));
Thank you very much basic612! :D

User avatar
kaz101
Joomla! Apprentice
Joomla! Apprentice
Posts: 44
Joined: Fri Mar 28, 2008 6:20 am
Location: South Australia
Contact:

Re: Browser title - how do add website's name

Post by kaz101 » Mon Jun 08, 2009 10:55 pm

Ghonjez wrote:Hi...

For easiest way, use TitleManager extensions :
http://extensions.joomla.org/extensions/3521/details

I've tried it and fine work.
Good luck. :)
Thanks for that tip. That extension is exactly what I was looking for!
"There is never a lack of money - only a lack of ideas" ~ Robert H Schuller.

Advertisement

Locked

Return to “General Questions/New to Joomla! 1.5”