Forum Support

Shape 5
March 28, 2024, 02:56:53 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Article Title -> Page Title  (Read 504 times)
aalekizogl
Jr. Member
**
Offline Offline

Posts: 11



« on: April 06, 2015, 08:42:56 AM »

Hi,

Using incline theme, I want to get the article title to be show as the page title. Now I get the menu title instead. Also I wanted to get a [article title] | [MY SITE] behavior. I suppose this has something to do with Joomla 3.3.6.
Logged
mikenicoll
Global Moderator
*****
Offline Offline

Posts: 20162



WWW
« Reply #1 on: April 06, 2015, 07:57:14 PM »

Hello,

Could you be more specific? The article title is a setting in Joomla itself but you can also adjust the Page Title setting under the Menu Parent. The Template doesn't control these outputs though, that is all through the Joomla back end.
Logged

Mike Nicoll
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
aalekizogl
Jr. Member
**
Offline Offline

Posts: 11



« Reply #2 on: April 07, 2015, 01:31:23 AM »

Mike,

thanks for replying. It seems I hit a new Joomla 3.3 feature. What I wanted was to have the article title shown as the browser page title. As I understand this is done by placing the title in the menu's "Page display->Browser Page Title" attribute. Rather I created a new ../templates/incline/html/com_content/article/default.php override with

Code:
....
// Fix Joomla 1.6+ title bug
$app = JFactory::getApplication();
$menu = $app->getMenu();
$menuTitleOverride = $menu->getActive()->params->get('page_title');

$config =& JFactory::getConfig();
$prefixSuffix = $config->get( 'sitename_pagetitles' );

$document=& JFactory::getDocument();
$document->setTitle( (1 == $prefixSuffix ? $config->get( 'sitename' ).' | ' : '') . ($menuTitleOverride ? $menuTitleOverride : $this->item->title) . (2 == $prefixSuffix ? ' | '.$config->get( 'sitename' ) : '') );   
....

You are correct this is not a template's problem. Thank you anyway.
Logged
mikenicoll
Global Moderator
*****
Offline Offline

Posts: 20162



WWW
« Reply #3 on: April 07, 2015, 03:47:34 PM »

No worries. Thanks for the reply Smiley
Logged

Mike Nicoll
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.