Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 25

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 25.01.2005, 03:30   #71 (permalink)
Mamber
 
Join Date: Jul 2004
Posts: 97
yipppie is on a distinguished road
Default Re: Dynamic Title Override

Option 3 might be best if you use sef advance, to be honest i use m2ks solution, so i have made this hack work around 404sef rather than sef advance.

The best thing to do is experiment around with the hack , because it will allow you to have long titles in any of the fields for any content items (sections, categories or items). you just have to know which fields to hack, if you know which field sef advance is using for the url's you can make the hack use the other field and exclude the long title from anywhere that it is showing up eg, menu items or modules. it just a process of elimination.

The only problems i found were that the modules like latest news would display the long titles, so i used the hack in the modules to get rid of the long title.

There were also problems in the backend admin, when i went to move items, the long urls would display which would break the admin template.

however, i have fully hacked a version of mambo, to do everything i want with the titles and the backend is hacked as well to display the short titles.
Everything seems to work perfectly. there is probably over 40 places to hack in total, but it does the trick.

I might post it up here if i have the time.

anyway good luck with ur titles
yipppie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 30.01.2005, 16:48   #72 (permalink)
Junior Mamber
 
Join Date: Jul 2004
Posts: 41
mauricio is on a distinguished road
Default Re: Dynamic Title Override

How can i change browser title so that it seems in all pages like:
MY PAGE - NEWS
MY PAGE - LINKS
....

now it seems like:
NEWS - MY PAGE
LINKS - MY PAGE
....
mauricio is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 30.01.2005, 17:54   #73 (permalink)
m2k
Senior Mamber
 
m2k's Avatar
 
Join Date: Sep 2004
Posts: 221
m2k is on a distinguished road
Default Re: Dynamic Title Override

Quote:
Originally Posted by mauricio
How can i change browser title so that it seems in all pages like:
MY PAGE - NEWS
MY PAGE - LINKS
....

now it seems like:
NEWS - MY PAGE
LINKS - MY PAGE
....
Edit the function setPageTitle in includes/mambo.php (~line 121)
m2k is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 30.01.2005, 23:01   #74 (permalink)
Junior Mamber
 
Join Date: Jul 2004
Posts: 41
mauricio is on a distinguished road
Default Re: Dynamic Title Override

OK thanks. I try many posibilitys and one makes it.
Can you say is it ok or is it something wrong? What is ? $title
Line:
$this->_head['title'] = $title ? $title . " - ". $GLOBALS['mosConfig_sitename'] : $GLOBALS['mosConfig_sitename'];
To:
$this->_head['title'] =$GLOBALS['mosConfig_sitename'] . " , ". $title;
mauricio is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 31.01.2005, 04:02   #75 (permalink)
m2k
Senior Mamber
 
m2k's Avatar
 
Join Date: Sep 2004
Posts: 221
m2k is on a distinguished road
Default Re: Dynamic Title Override

Quote:
Originally Posted by mauricio
OK thanks. I try many posibilitys and one makes it.
Can you say is it ok or is it something wrong? What is ? $title
Line:
$this->_head['title'] = $title ? $title . " - ". $GLOBALS['mosConfig_sitename'] : $GLOBALS['mosConfig_sitename'];
To:
$this->_head['title'] =$GLOBALS['mosConfig_sitename'] . " , ". $title;
In this case, the ? makes this a conditional statement:
Command syntax:
var = condition ? The TRUE part : The FALSE part

Translation of
$this->_head['title'] = $title ? $title . " - ". $GLOBALS['mosConfig_sitename'] : $GLOBALS['mosConfig_sitename'];

if $title<>"" then $this->_head['title'] = $title . " - ". $GLOBALS['mosConfig_sitename'] else $this->_head['title'] = $GLOBALS['mosConfig_sitename']

What you are trying to do would be stated as follows:

$this->_head['title'] = $title ? $GLOBALS['mosConfig_sitename'] . " - ". $title : $GLOBALS['mosConfig_sitename'];

Understand?
m2k is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 31.01.2005, 21:00   #76 (permalink)
Junior Mamber
 
Join Date: Jul 2004
Posts: 41
mauricio is on a distinguished road
Default Re: Dynamic Title Override

Thank´s. This is best explanation ever. Colorschema is great.
ps. it works
mauricio is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hide item's title MBaas Mambo 4.5.1 'How Do I' Questions 7 16.05.2005 00:06
Dynamic Page Title not working divamissx Mambo 4.5.1 'How Do I' Questions 4 03.02.2005 02:51
Page Title Bugs??? swalian Mambo 4.5.1 Bugs 2 30.11.2004 18:42
Custom Page Title dezomat Mambo 4.5 'How Do I' Questions 7 20.09.2004 02:27
How to add the content title into the web site title? gdrak Mambo 4.5 'How Do I' Questions 3 21.05.2004 12:38


All times are GMT +2. The time now is 09:47.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.