T3 Community Discussion & Support

Let's build the best free Joomla template framework, together!
  1. Michael
  2. General Discussion
  3. Sunday, 21 June 2015
  4.  Subscribe via email
Hello!

I am using T3 Bs3 Blank-Template and need to add a new block on top, hat holds two positions:

Position "leaderboard-standard" shall display a superbanner ad in "Large", "Medium" and "Small" screen.
Position "leaderboard-mobile" shall display a mobile-ad in "Extra Small" screen.

I have made a new block leaderboard.php in which both are placed:


<jdoc:include type="modules" name="<?php $this->_p($leaderboard-standard) ?>" style="JAxhtml" />
<jdoc:include type="modules" name="<?php $this->_p($leaderboard-mobile) ?>" style="JAxhtml" />


Also I have defined both positions in file templateDetails.xml.

Now there two problems:

1. In Joomla Backend in layout view both positions have the "0" instead of "leaderboard-standard" and "leaderboard-mobile". When I click on the gear icon I can assign the positions. But after I have clicked "Save" its "0" again.

2. There are no eye icons to switch them on or off.

Can anyone help? :)

Michael
Attachments (1)
Comment
There are no comments made yet.
Accepted Answer
Accepted Answer Pending Moderation
0
Votes
Undo
Hi,

Thanks for contacting us, the reason the positions are not loading is because you don't declare theme. Here is the code that you can use for your site.

<div class="banner-1 <?php $this->_c('leaderboard-standard') ?>">
<jdoc:include type="modules" name="<?php $this->_p('leaderboard-standard') ?>" style="T3Xhtml" />
</div>

<div class="banner-2 <?php $this->_c('leaderboard-mobile') ?>">
<jdoc:include type="modules" name="<?php $this->_p('leaderboard-mobile') ?>" style="T3Xhtml" />
</div>


Add it to the layout you want.

Regards,
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # Permalink
Accepted Answer Pending Moderation
0
Votes
Undo
Tht solved it! Thank you for your great help!
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
It's my pleasure.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 2
  • Page :
  • 1


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