'header_highlighter' div does not show up in Module Manager

Professional Jomal template designed to be easily adaptable to all kinds of business
GK User
Tue Feb 22, 2011 2:12 pm
Hi, so I'm working on taking the Imageshow and Highlighter modules and layout from the Corporate 2.0 template and adding these to Postnote instead. So far, it all works well (see: www.changingplanet.com/test/).

However, with the Highlighter extension I'm stumbling across one small issue. I've copied the /templates/gk_corporate2/layouts/blocks/header.php file (see attached) into my Postnote template in order to ensure that the CSS and everything works perfectly for the Gavick modules. This worked like a charm for Imageshow, but now that I've installed the Highlighter module I want to place it - like is the case with the corporate 2.0 - template in a 'header_highlighter' div.

The issue is, although this div is specified in the 'header.php' block, when I edit the settings for Highlighter in the module manager, I cannot select 'header_highlighter' as a position. It simply isn't in the dropdown list.

I'm very new to the T3 framework, and although I've read all the documentation I could find I'm still learning about it. Should I declare the 'header_highlighter' div in another file in order for the system to pick it up?
User avatar
Junior Boarder

GK User
Tue Feb 22, 2011 2:18 pm
Hi! In order to choose a module position in the back end for a module created in one of the layout.php files, it should also be added to the templateDetails.xml file in the root of your template. If all is well, you created a module in the header position looking something like this
Code: Select all
<?php if( $this->countModules('header_highlighter')) : ?>
<div id="header_highlighter" class="clear clearfix">
      <jdoc:include type="modules" name="header_highlighter" style="gavickpro" />
</div>
<?php endif; ?>


After that, you should also add the following to the templateDetails.xml file under 'positions'
Code: Select all
<position>header_highlighter</position>
User avatar
Fresh Boarder

GK User
Wed Feb 23, 2011 7:48 am
That works, thank you! I didn't declare the position under templateDetails.xml as I got a bit confused I guess, the documentation on T3 I've been reading (on Wikipedia) has a different file structure than what Gavick is using, so I'm not sure if you guys have amended the official structure or if I was looking at outdated help files. In any case, the structure that Gavick uses is neater and makes more sense to me.
User avatar
Junior Boarder


cron