I have read the documentation for new positions, added the template.xml position and in gk.const.php, but i don't know where's the best place for the jdoc include statement:
- Code: Select all
<?php if($this->modules(‘newposition’)) : ?>
<div>
<jdoc:include type=”modules” name=”newposition” style=”<?php echo $this->module_styles['newposition']; ?>” />
</div>
<?php endif; ?>
Tried several files in the block folder: header.php, nav.php, etc.
Also tried to make a newmodule.php in the layouts/blocks folder with the inculde statements and load it through default.php with something like that:
- Code: Select all
<div id="gkBg">
<div id="gkWrap1">
<?php $this->loadBlock('newmodule'); ?>
</div>
</div>
But i'm not a php programmer so this was just a trial and the code in newmodule.php shall be wrong i guess:
- Code: Select all
<?php
// No direct access.
<?php if($this->modules(‘newposition’)) : ?>
<div>
<jdoc:include type=”modules” name=”newposition” style=”<?php echo $this->module_styles['newposition']; ?>” />
</div>
<?php endif; ?>
But, all in all i have tried several things but don't come closer. Has somebody a hint where is the best place for the statements and perhaps for the correct code?
I want to make it in the right way within the gavern framework when it's possible.
Thanks Markus