I'm trying to create a 2nd sidebar wich should be between the content and the original sidebar. I've tried to create it using the code within the "How to create a new module position" tutorial. But i just get this:
Fatal error: Call to undefined method GKTemplate::modules() in /web/htdocs/www.laraiz.es/home/templates/gk_musicstate/layouts/default.php on line 178
I've done this steps:
1st templatedetails.xml
- Code: Select all
<position>sidebar-2</position>
2nd gk.const.php
- Code: Select all
'sidebar-2' => 'gk_style',
3rd default.php
- Code: Select all
<?php if($this->modules('sidebar-2')) : ?>
<div class="newstyle">
<jdoc:include type="modules" name="sidebar-2" style="<?php echo $this->module_styles['sidebar-2']; ?>" />
</div>
<?php endif; ?>
4th template.css
- Code: Select all
.newstyle { width:20%;}
Could anybody please tell me what am I doing wrong?
Thank you in advance for your time!