linkedintwitterfacebookbranchout

sublogo
  • Our Services
  • Our Work
  • Who
  • Contact

Recent Blogs

  • Upgrade Joomla

  • How to design a Joomla website

  • What is Joomla?

  • Joomla Page Titles Module

  • Joomla FFmpeg Hosting

  • Working with Joomla

  • Social Networks and SEO

  • Blogging with Joomla

  • Joomla 1.7 For Web Sites

  • Custom Joomla Template Styling

  • Bespoke Custom Joomla Templates

  • Search Preview? You need it!

  • Introduction Articles in Joomla

  • Advertising Rules on Websites

  • Sef404 Virtuemart Pagination

  • Why Upgrade to IE9?

  • Expanding Joomla Content

  • Google's Goal

  • Meta Tags Help

  • E-Commerce Made Easy!

  • Joomla Installation

  • Joomla SEO Check

  • Improve your Joomla web site

  • Joomla htaccess re-write

  • Joomla Template Parameters

  • Email Safety

  • Create a hidden menu

  • Joomla1.6

Joomla Page Titles Module

Details
Created on Thursday, 17 November 2011 11:03   |  
Written by The bloggers

Have you ever wanted to be able to control your page titles and place the titles in a specific place on your article rather then the top left. Perhaps you have wanted the breadcrumb to go under the page title before the article's it's self. Or display the page title in a module else where on the page and have it not show in the default position.

Well here we are going to explain to you how simple this is for Joomla 1.5 x we have not tested this in 1.7.x yet.

First of all turn your page title off in your article parameters, you can do this globally or just for one article.

Second just create a custom html module and call it something like "title" click the radio button to hide title enable it and place it in the position title (just type this into the position box).

do not add any text to the text area instead just save and close the module.

Now you will have to edit your template index.php or which ever file you want to place your new module into, perhaps header.php, depending on your template.

Now just copy and paste this code into your php file save and upload.

<?php if($this->countModules('title')) : ?>
<div id="ac-title">
<?php
$option = JRequest::getCmd('option');
$view = JRequest::getCmd('view');
if ($option=="com_content" && $view=="article") {
    $ids = explode(':',JRequest::getString('id'));
    $article_id = $ids[0];
    $article =& JTable::getInstance("content");
    $article->load($article_id);
    echo'<h1>';
    echo $article->get("title");
    echo'</h1>';
}
?>
</div>
<?php endif; ?>

The css div id's and classes can be called what ever you like, you will have to add the stsyle to your style sheet and format them accordingly to blend with your design. There you go all you have to do now is choose which pages the title module will be displayed on.

address

27 Levens Grove
Blackpool
Fy15PP
Lancashire
Tel: 01253 317504

Chat With a Joomla Expert

Features

  • Web Site Design and Development
  • Joomla Developers
  • Joomla Training Courses
  • E-commerce Sites
  • Web Site Promotion and Marketing

Clients

clients

  • Home
  • Blog
  • Terms and Conditions
  • Privacy Policy
  • Testimonials

 Copyright © 2006 - 2012 All Rights Reserved - Web Design Studio Limited -Tel: 01253 317504 - Mobile : 07896978967