Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated

Adding module under component in mainbody in default template

11 years 4 months ago
  • Danny's Avatar
    Topic Author
  • Danny
  • Offline
  • Fresh Boarder
  • Posts: 34
  • Thank you received: 2
Licenses:
JomSocial Active AdAgency Expired Socialize Expired

I have been working with this for some time. I went on the T3 support forum but there is no help or any type of support and been trying to figure out why the module won't show, I watched all of the T3 videos and created all different type of versions to get it to work. Not sure if I am missing something that is Socialize specific but I am hoping someone can guide me here since they can't at T3, that's why I hate using applications that have no support for it and I rather pay for it.

I am using the Socialize default layout (mind you I recently upgraded from 1.2.8 to 2.0 and things were quite different my previous layout became broken)

I cloned it and modified the respective files to take the module, I used the "mast-col" since it is already define in most places.

The default layout calls the "mainbody.php" block which then also has the code to detect the different layouts sidebar1 & 2 where it decides which additional block to render which in my case is "mainbody/one-sidebar-right.php"

1. I modified the code in "mainbody.php" to add and define the "mast-col"
2. I then modified "one-sidebar-right.php" and added the module under the component with this code:

<div class="t3-sidebar t3-sidebar-left col-xs-12 col-sm-4 col-sm-pull-8 col-md-3 col-md-pull-9">
<div class="row">

<!-- MASSCOL 1 -->
<?php if ($vars) : ?>
<div class="t3-mastcol t3-mastcol-1 <?php $this->_c($vars) ?>">
<jdoc:include type="modules" name="<?php $this->_p($vars) ?>" style="..." />
</div>
<?php endif ?>
<!-- //MASSCOL 1 -->

3. I updated the layout file to include the "mast-col" in the templatedetails.xml and the locally cloned .ini file.

but nothing is happening. The page is showing fine just no module. I tried comparing the other layouts that actually use the "mast-col" in the mainbody but I don't see anything different. So I must be missing something.

I am working my local machine to get this done and I haven't done anything on my live site since I don't want to have issue with it until I find out what is happening.

Attachments:
11 years 4 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi,

Please you add this code :

<?php if ($this->countModules('mast-col')) : ?>
  <!-- HOME SL 3 -->
  <section class="container t3-sl t3-sl-3<?php $this->_c('mast-col')?>">
    <jdoc:include type="modules" name="<?php $this->_p('mast-col') ?>" style="raw" />
  </section>
  <!-- //HOME SL 3 -->
  <?php endif ?>

inside all mainbody files

I hope it will work ;)

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW