hi, is it possible to activate component in home page?
i will like to put articles in home page with component.
yhanks for help
component in home page
Hi latribulatina
You can do this by loading the "mainbody" block in the Home layout, open the file "templates/ja_mood/tps/home.php" and add the "mainbody" to the section you want.
<?php $this->loadBlock('mainbody') ?>
In case you want to add the "component" to a specific block, you can use the following calling position code:
<div id="t3-content" class="t3-content col-xs-12">
<?php if($this->hasMessage()) : ?>
<jdoc:include type="message" />
<?php endif ?>
<jdoc:include type="component" />
</div>
I added this to the file "templates/ja_mood/tpls/blocks/mainbody-home.php", and commented on the code, if you want to use this, just remove the comment.
If you have any questions, please let me know.
Best Regards.
hi man, i did i followed your suggestion and put the code: <?php $this->loadBlock('mainbody') ?> in the: "templates/ja_mood/tpls/home.php" and it's ok. but there is a small problem, on the home page I have the double sidebar-right with the same modules doubled. how can i fix it?
Hi latribulatina,
Please try this code instead. This does not have sidebar position in the mainbody.
<?php $this->loadBlock('mainbody/no-sidebar') ?>
Best regards.