Login Form

#236 – Auction name in browser title line

Posted in ‘BF Auction’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Saturday, 17 May 2014 22:25 AEST
Joomla! version: 3.3.0
BF auction 1.5.4

Hi Tim

Would it be possible to have the name ogf the item that is shown in the bid page shown in the title of the Browser ? (I hope you understand what i mean)

This would make Shares to Facebook better as it would indicate the name of what you are selling instead of just the name of the website.

Tuesday, 20 May 2014 21:58 AEST 15'
BF Quiz Plus 3 Years
Hi Picht,
Great idea. This can be achieved by editing /components/com_bfauction_plus/views/bid/view.html.php

Around line 65, add

Then add the following function:
protected function _prepareDocument()
$app = JFactory::getApplication();
$menus = $app->getMenu();
$title = null;

// Because the application sets a default page title,
// we need to get it from the menu item itself
$menu = $menus->getActive();
$this->params->def('page_heading', $this->params->get('page_title', $menu->title));
} else {
$this->params->def('page_heading', JText::_('COM_BFAUCTIONPLUS_DEFAULT_PAGE_TITLE'));
$title = $this->params->get('page_title', '');
if (empty($title)) {
$title = $app->getCfg('sitename');
elseif ($app->getCfg('sitename_pagetitles', 0) == 1) {
$title = JText::sprintf('JPAGETITLE', $app->getCfg('sitename'), $title);
elseif ($app->getCfg('sitename_pagetitles', 0) == 2) {
$title = JText::sprintf('JPAGETITLE', $title, $app->getCfg('sitename'));

$title.=' '.$this->bfauction_plus->title;

if ($this->params->get('menu-meta_description'))

if ($this->params->get('menu-meta_keywords'))
$this->document->setMetadata('keywords', $this->params->get('menu-meta_keywords'));

if ($this->params->get('robots'))
$this->document->setMetadata('robots', $this->params->get('robots'));

Let me know how you go.


Follow us on twitter http://twitter.com/tamlynsoftware
Wednesday, 21 May 2014 00:47 AEST
Hi it works almost correct.

In fact i think the problem is somewhere else.

If i create a menu item showing "Auction" and let anuthing be default, then when selecting the menu on the frontend the titlebar shows the URL and not the name of the menuitem as is standard with Joomla.

I fixed that by adding a user defined heading title in the menu´definition in backend oif Joomla with the same name as the website, and now with the new change the website name is shown twice.

Is there a fix for the problem i just mentioned ? Then the fix provided in the post above willl be perfedt !

Thursday, 22 May 2014 02:16 AEST
Please disregard my previous post.

I had done an error with the menus.


This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.
Go to top