T3 Community Discussion & Support

Let's build the best free Joomla template framework, together!
  1. infinitanet
  2. General Discussion
  3. Sunday, 15 September 2013
  4.  Subscribe via email
Hello,
  I wonder if there is a way to ocutar position if you do not have a module position esaço removing empty.
  I gave some research on the internet and could not resover this question.

  Thank you for your attention
Comment
There are no comments made yet.
Accepted Answer Pending Moderation
0
Votes
Undo
Hi infinitanet,

I am not sure that I understand what you mean.

<?php if ($this->countModules('module-position')) : ?>
<div class="class-name <?php $this->_c('module-position', array('default' => 'span6', 'xtablet' => 'span9', 'tablet' => 'span12', 'mobile' => 'span12'))?>">
<jdoc:include type="modules" name="<?php $this->_p('module-position') ?>" style="raw" />
</div>
<?php endif ?>


You just need some condition to check if any module is exist for that position.

Regards
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.