Members: 10,140
Threads: 38,830
Posts: 159,367
Online: 30

Newest Member: Xoote


Old 11.02.2005, 00:35   #1
mamborv
Baby Mamber
 
Join Date: Dec 2004
Posts: 12
mamborv is on a distinguished road
Default Dynamic page title in v. 4.5.0

I need to change the page/browser <title> for each different page displayed in v. 4.5.0. Right now it always displays $mosConfig_sitename, but I need it to display the site name + article name (ie: My Site - Find Help). In browsing around various pages on the net it looks like this feature is available in v. 4.5.1, as a function in mambo.php. But v. 4.5.0 doesn't have this feature (or even mambo.php), at least I can't find it. Is there a hack for this, or does anyone know how I might accomplish this task in v. 4.5.0? Thanks much for your help.

Mambo RV
mamborv is offline  
Sponsored Links
Old 11.02.2005, 00:44   #2
ApSpecialists
Expert Mamber
 
ApSpecialists's Avatar
 
Join Date: Apr 2004
Posts: 393
ApSpecialists is on a distinguished road
Default Re: Dynamic page title in v. 4.5.0

I believe that mambo.php is in the "classes" directory, and not in "includes" on 4.5.0. Unless there's some major reason not to - why not upgrade and save yourself the coding issue entirely?
__________________
If I stop learning, close the lid... I'm dead
Mambo Hosting :: iNET Host Services
The Mambo Directory :: MamboVista
Templates :: Mambo-Corporate
ApSpecialists is offline  
Old 11.02.2005, 12:01   #3
mamborv
Baby Mamber
 
Join Date: Dec 2004
Posts: 12
mamborv is on a distinguished road
Default Re: Dynamic page title in v. 4.5.0

Yes, mambo.php is in the "classes" directory in 4.5.0. Of course this version does not provide for dynamic titles. It's not my decision to upgrade to 4.5.1. I am an independent developer brought in to modify mambo to fit their needs. They have said that 4.5.1 is not an option, so it's not my call. Thanks.
mamborv is offline  
Old 11.02.2005, 13:03   #4
absalom
Senior Mamber
 
absalom's Avatar
 
Join Date: Apr 2004
Location: Melbourne, Australia
Posts: 148
absalom is on a distinguished road
Send a message via MSN to absalom
Thumbs up Re: Dynamic page title in v. 4.5.0

Here's the initial hack for 4.5.0.x that ended up being dynamic page titles in 4.5.1. Integrate into your template using the following code:

PHP Code:
 include($mosConfig_absolute_path."/templates/<templatename>/titles.php"); 
at the start of the template file
__________________
Absalom Media :: W3C CSS templating for Joomla and Mambo
Absalom Media Templates hosted at MamboForge
absalom is offline  
Old 25.02.2005, 12:53   #5
Ricardo Monteblan
Baby Mamber
 
Join Date: Jul 2004
Posts: 7
Ricardo Monteblan is on a distinguished road
Default Re: Dynamic page title in v. 4.5.0

What do I need to include in the <title> tag in the template index.php file for this to work - and what should the title tag then say - I dont think its working for me.
Ricardo Monteblan is offline  
Old 25.02.2005, 14:18   #6
mhwatson
Junior Mamber
 
Join Date: Jul 2004
Location: Bradford UK
Posts: 31
mhwatson is on a distinguished road
Default Re: Dynamic page title in v. 4.5.0

Hi,

Brian Hibbits has a script which does it I think,

http://www.hibbits.com/content/view/46/9/

Hope that helps,

Martin.

http://www.watson-trant.com
mhwatson is offline  
Old 25.02.2005, 14:26   #7
Ricardo Monteblan
Baby Mamber
 
Join Date: Jul 2004
Posts: 7
Ricardo Monteblan is on a distinguished road
Default Re: Dynamic page title in v. 4.5.0

Superstarr - works perfectely

Thank you
Ricardo Monteblan is offline  
Old 10.05.2005, 19:51   #8
iainshaw
Mamber
 
Join Date: Feb 2005
Posts: 54
iainshaw is on a distinguished road
Default Re: Dynamic page title in v. 4.5.0

Can't seem to download the script from Brian Hibbits site - does anyone have the script? and the hack posted by Absalom doesn't seem to do anything. I can get it to cause parse errrors and I can get it parse perfectly........but it doesn't do anything to my page titles. Running 4.5.0. -1.0.9 and upgrading to 4.5.2 isn't an option at the moment
thanks in advance
iainshaw is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to add text on main page without title, date, and read more darek555aaa Mambo 4.5.1 'How Do I' Questions 5 03.02.2005 11:24
Dynamic Page Title not working divamissx Mambo 4.5.1 'How Do I' Questions 4 03.02.2005 01:51
Page Title Bugs??? swalian Mambo 4.5.1 Bugs 2 30.11.2004 17:42
change of page title only for home page? mhutchin Mambo 4.5 'How Do I' Questions 2 20.10.2004 13:54
Custom Page Title dezomat Mambo 4.5 'How Do I' Questions 7 20.09.2004 01:27


All times are GMT +2. The time now is 22:29.

Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.