![Wink ;)](./images/smilies/icon_wink.gif)
(OT: are you using the extended commercial SEF patch? is it really better than the free one?)
Code: Select all
$title = $custom_title ? $custom_title . ' - ' . $GLOBALS['mosConfig_sitename'] : $GLOBALS['mosConfig_sitename'] . ' - '. $title;
Code: Select all
<param name="title_cust" type="text" size="20" default="" label="Custom Title Tag" description="A custom Title tag to be applied to the page, this allows individual page titling" />
Code: Select all
<param name="title_cust" type="text" size="20" default="" label="Custom Title Tag" description="A custom Title tag to be applied to the page, this allows individual page titling" />
Code: Select all
$mainframe->SetPageTitle( $menu->name );
Code: Select all
$mypagetitle = $params->get ('title_cust');
$mainframe->SetPageTitle( $mypagetitle );
does this work for joomla 1.0.12 ?? I really would like to use this hack or is there an other way to edit the pagetitle ?php4ever wrote: testing for 1.0.12 today
Jared
php4ever wrote: Here is a zip file I created with all the changes and backups in place.
Its intended for use by new installs of Joomla 1.0.11, however if you have third party components you will just need to go to those components and add the following line as originally instructed.
I will maintain successive packages to help out with barnett if thats ok, as each release of Joomla becomes available so in the event that Joomla releases 1.0.12 and so on I'll make it as an easy drop in.
Just follow the instructions in the README.TXT file included with the zip. http://www.jaredsdesigns.com/downloads/ ... 1.0.11.zip
~ Jared
POST KEYWORDS: "Joomla 1.0.11 Custom Title, Titles Tags, Dynamic Titles"
PS Good Job "barnett"
This is the code I am usingmoontear wrote: I'm having problems... Currently I am using this code:
Wrong behavior:
On a component menu item with a custom title set, I only get "$customtitle" as titlebar.
At a normal site (Home in particular) with normal "Page title" set to home, I only get "$sitename - "
The behaviour I want to achieve is the following for ALL sites (with or without customtitle):
"$sitename - $pagetitle" (pagetitle refers to either normal page title or custom title, whichever is there)
Hope somebody can help, thanks
moon
Code: Select all
$title = $custom_title ? $custom_title . ' - ' . $GLOBALS['mosConfig_sitename'] : $GLOBALS['mosConfig_sitename'] . ' - '. $title;
$title = trim( htmlspecialchars( $title ) );
$this->_head['title'] = $title ? $title : $GLOBALS['mosConfig_sitename'];
Code: Select all
$title = $custom_title ? $GLOBALS['mosConfig_sitename'] . ' : ' . $custom_title : $GLOBALS['mosConfig_sitename'] .' : '. $title;
Code: Select all
<field type="textarea" name="attribs" translate="1">Attributes (inc. title_cust)</field>
Code: Select all
<field type="textarea" name="params" translate="1">Attributes (inc. title_cust)</field>
You actually don't want this, for SEO purposes. Your titles should be short, and unique on each page.moontear wrote: Using Joomla 1.0.13.
I just tried the steps explained, but just can't seem to get the Sitename shop up in front of the content items.
Basically I want the format [SITENAME] - [SECTION] - [CATEGORY] - [ITEM].
Nothing special, but the Sitename will just not show up. This also happened when NOT having installed the custom title hack. In the global configuration the appropriate site name is set. Do I have to set it somewhere that it preprends the sitename to all title fields?