by Bhumi // Nov 4,2012 // No comment
I think this is one of the common problem you’ll face while you’re working for the website of joomla because the component always display at one position. If there is nothing to display on page, it still be there because of this page layout messy and mostly it’s happened with the homepage because mostly we have different layout on homepage and we don’t want to go with component.
Well,I have solution of problem you face with component display so let’s see the steps to handle component display
Place below line of code into the index file of template you are using for website.
|
1 2 3 4 |
<?php if($this->countModules('frontcomp')) : ?> <jdoc:include type="modules" name="frontcomp" style="xhtml" /> <?php endif; ?> |
|
1 2 3 4 5 |
<?php if(!$this->countModules('frontcomp')) : ?> <jdoc:include type="message" /> <jdoc:include type="component" /> <?php endif; ?> |
Create a one new custom html module and the position of module is frontcomp, and select home page only to display.
That’s it.Now, On homepage of your site will not display component.
Thanks for reading and feel free to share your thoughts, don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.
Recently I am working on one project and i wanted to provide sorting save and edit option to the title in joomla website. In this READ MORE
Warning :Cannot find Joomla XML Setup file
Joomla is a one of the most popular open source CMS and i know you all the latest version of Joomla 3 has some great READ MORE
How to manage child product with size in virtumart
In this tutorial series,today I am going explain about how you can do customization in child product drop-down display in product detail page like in READ MORE
Free shipping for specific Country in Virtuemart Joomla
Recently I was working in Joomla application and application have shipping functionality and I want to limit free shipping for specific country in Virtuemart component READ MORE
Here is one quick article about to use Template Parameter in Joomla.You can change the functionality of template with the use of template parameters which READ MORE
Be a Contributor at CreativeDev.Write an article or tutorial to the community and share some of your knowledge!