Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

ZGF J1.6 Layout Question

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Joomla Version: 1.6.3
ZGF/ZenDefault J1.6

I currently have my layout set up to have the logo on the left side above the navigation. I am trying to display the current menu item title (home/about/contact etc.) to display next to the logo. Is this possible? I can handle the positioning with CSS, I just want to know how/where to insert the code to display the menu item title between the logo and the navigation.

Here is an example of what I am going for:
concept.png


Richard Smith
Atomic Design & Consulting
  • Atomic Design and Consulting's Avatar
  • Atomic Design and Consulting
  • 3 Month Basic
  • 43 posts
  • 1 Thanks
  • Karma: 2
Last Edit: 12 years 10 months ago by Atomic Design and Consulting.
The administrator has disabled public write access.
Hi Richard,

Sounds like you may need to create an override to do this.

This article should help give you an overview:
docs.joomlabamboo.com/item/558-exploring-template-overrides

And this article gives an explanation of how to create a layout override:
docs.joomlabamboo.com/item/731-adding-a-module-position-to-a-zen-grid-framework-template

So basically I would create a layout override for main.php and insert the code to display the current page under the logo markup.

Hope that helps.

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
I created a module position an placed this into a module that can handle PHP:
<?php
$doc =& JFactory::getDocument();
$menutitle = $doc->getTitle();
echo '<span class="navTitle">'.$menutitle.'</span>';
?>
Seems to do what I needed. Will do more testing later to make sure it will render "Blog" instead of rendering the titles of K2 items.
  • Atomic Design and Consulting's Avatar
  • Atomic Design and Consulting
  • 3 Month Basic
  • 43 posts
  • 1 Thanks
  • Karma: 2
Last Edit: 12 years 10 months ago by Atomic Design and Consulting.
The administrator has disabled public write access.
B) Thanks for the update.
  • Seth's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers