How to create a 2nd sidebar

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue Nov 19, 2013 2:21 pm
Reply with quote
Report this post
Hi,

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!
User avatar
Senior Boarder

GK User
Tue Nov 19, 2013 7:41 pm
Reply with quote
Report this post
The second sidebar will not be display like regular sidebar because this is built-in part of template. The only is to re-style whole template to support multiple sidebar's but this is related with huge CSS changes.
User avatar
Platinum Boarder

GK User
Tue Nov 19, 2013 8:08 pm
Reply with quote
Report this post
Ouch! Ok, thank you :)
User avatar
Senior Boarder


cron