Top Left Text cha

Website Development Services

Using Event Booking's 'Upcoming Events' menu item type for the home page destroyed my title tag.

I tried a few methods, but the quick & easiest is to just remove the instructions to replace the Joomla core page title. You will just need to set this in the page display options of the menu item.

Remove the following code from /components/com_eventbooking/views/upcomingevents/view.html.php. You should find it around line 35.

$pageTitle = JText::_('EB_UPCOMING_EVENTS_PAGE_TITLE');
		if ($category)
		{
			$pageTitle = str_replace('[CATEGORY_NAME]', $category->name, $pageTitle);
		}		
		$document->setTitle($pageTitle);

If you're looking to fix this on other pages/menu item types, it should be easy to figure out where to find it. For example, if you want to fix it on a page of item type, 'events calendar', look for the same chunk of code or similar and remove it from /components/com_eventbooking/views/calendar/view.html.php.

This modification is specifically for Event Booking 1.6.3 on Joomla 2.5.14, but it should be of help with later releases also.

By the way, unfortunately you can not do this via a template override... not on the .html.php file.  So, for now, you'll just have to be careful when you update and rip out the bad code every time.  Booooo to the developers for not caring about SEO.

Comments   

0 #1 Anya 2015-02-21 15:46
Greetings! Very helpful advice within this article!
It's the little changes that will make the biggest changes.
Thanks a lot for sharing!

My web blog; automatic daily backlinks: http://www.autoblinks.com
Quote

Add comment


Security code
Refresh

  • No comments found

Leave your comments

Post comment as a guest

0
Your comments are subjected to administrator's moderation.
X