VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
VISIT OUR CHANNEL ON YOUTUBE

Account Details

Change your name, email, password or permanently delete your account. Change settings

We offer several ways you can get support from our experts: Support ForumKnowledgebaseNewsletter

Your Forum Posts

No posts to display.

Welcome, Guest
Username Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Module in Mainbody

Module in Mainbody 21 Jan 2014 08:47 #3706

Dear all,
I'v got JF Calla Exteriors paying the license.
I'm using icagenda for the events.
I would like to put in the page events the icagenda calendar module on the left and the icagenda module with the event list on the right.
I can I do that?
I have to create a new position box?
The most simple way would be the menu "EVENTI" will redirect not on the "mainbody" position, but on the "home-c-r" so I can put icagenda calendar module on the "home-c-l" and
the icagenda component in the menu "EVENTI" positioned on the right. Can I do thet?
Thank you in advance for your answer.

  • Posts:15
  • Uletto
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: Module in Mainbody 21 Jan 2014 14:07 #3707

You have to extend template, need to add new module position and style it with css.

www.yootheme.com/themes/documentation/cu...-new-module-position

  • Posts:502
  • theres no place like joomfreak.com
  • m.freak
  • Platinum Boarder
  • OFFLINE
  • Karma: 0

Re: Module in Mainbody 21 Jan 2014 14:31 #3710

Thank you for your answer!
I have created a new position "myposition" in templateDetails.xml:

<positions>
<position>logo</position>
...
<position>debug</position>
<position>myposition</position>
</positions>

Then the first problems:
- where do I find config.xml?
- in layouts/ there's no template.php and no module.php...
- I've did the code:
<?php if ($this['modules']->count('myposition')) : ?>
<section id="myposition">
<div class="grid-block">
<?php echo $this['modules']->render('myposition', array('layout'=>$this['config']->get('myposition'))); ?>
</div>
</section>
<?php endif; ?>
Where exactly I have to put it in template.php to obtain the effect I wrote?
- there's no /css/layouts.css file too...

Can you help me?

  • Posts:15
  • Uletto
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: Module in Mainbody 21 Jan 2014 16:47 #3712

templateDetails.xml is ok. now you have to add following text into index.php of your template:

 
<?php if($this->countModules('myposition')) : ?>
<div id="myposition">
<jdoc:include type="modules" name="myposition" />
</div>
<?php endif; ?>
 


and now you can style your module in /templates/jf_calla-exteriors/template.css
Last Edit: 21 Jan 2014 16:48 by m.freak.

  • Posts:502
  • theres no place like joomfreak.com
  • m.freak
  • Platinum Boarder
  • OFFLINE
  • Karma: 0

Re: Module in Mainbody 21 Jan 2014 16:56 #3713

Forgive me...
Can I put this code in index.php everywhere or is important the position?

  • Posts:15
  • Uletto
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: Module in Mainbody 22 Jan 2014 13:01 #3720

it is important in code to place on right position because so you can style easy with css...

  • Posts:502
  • theres no place like joomfreak.com
  • m.freak
  • Platinum Boarder
  • OFFLINE
  • Karma: 0
  • Page:
  • 1
  • 2
Time to create page: 0.94 seconds
Saturday 20 April 2024

joomfreak is not affiliated with or endorsed by the Joomla Project or Open Source Matters.
The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.