Hi there,
I'm using JA Builder and want to add a masthead module to a position that places the module on relevant content pages (e.g. category blog) this will make life easier than having to apply a block to each and every individual page in 'content-top'. This is far to hard for customers to manage.
Is there a default position? (I have tried most and nothing shows up - not header, not debug, not breadcrumb)
I have JA Masthead installed and assigned to relevant pages via the core menu assignment, much the way I would if I build any other Joomla site.
I tried adding some code (below) to the index.php - but I cant get anything to show. I have also added 'masthead' to the TemplateDetail as a position. Nothing shows up.
Here is what I tried in the index.php...within the 'content-top':
<?php if ($helper->pageContent('top')): ?>
<div class="content-top">
<?php $helper->_pageContent('top') ?>
<!-- start Added Masthead -->
<?php if ($this->countModules('masthead')) : ?>
<!-- JA MASTHEAD - CONTENT ONLY -->
<div class="ja-masthead <?php $this->_c('masthead') ?>">
<jdoc:include type="modules" name="<?php $this->_p('masthead') ?>" style="raw" />
</div>
<!-- // JA MASTHEAD -->
<?php endif ?>
<!-- end Added Masthead -->
</div>
<?php endif ?>
Can you please advise how I can achieve this.
Many thanks
Bri
I