0
Welcome Guest! Login
0 items Join Now

Adding Module Positions

    • antonsev's Avatar
    • antonsev
    • Rocketeer
    • Posts: 53
    • Thanks: 0

    Adding Module Positions

    Posted 15 years 5 months ago
    • hi

      i need to add a whole block position just below user1,2,3 in afterburner.

      can anyone help me how to do it please?

      thks :oops:
    • antonsev's Avatar
    • antonsev
    • Rocketeer
    • Posts: 53
    • Thanks: 0

    Re: Adding Module Positions

    Posted 15 years 5 months ago
    • is it possible / impossible / very difficult , or what? :o

      in need of some help

      thanks & cheers
    • antonsev's Avatar
    • antonsev
    • Rocketeer
    • Posts: 53
    • Thanks: 0

    Re: Adding Module Positions

    Posted 15 years 5 months ago
    • hello

      i found this:-

      Getting More Module Positions

      The default Joomla templates only provide 6 or below Module positions, not very good if you use the loadposition user# feature and want to load modules in with your content.

      The answer is easy enough, usually a 5 minute process of editing a single file, as follows:

      Open your active template(s) directory and open the file(s) templateDetails.xml in a plain text editor or using your hosts control panel File Manager (preferred).
      Scroll down to the beginning of <positions>, and add in as many positions as you like. Here I've added in another 6 from lines 11 to 16:
      Save the file(s), refresh your browser twice and you should see the new positions available when editing modules. You can then use the new positions without having to worry about conflicts with defaults.
      <positions>
      <position>breadcrumb</position>
      <position>left</position>
      <position>right</position>
      <position>top</position>
      <position>user1</position>
      <position>user2</position>
      <position>user3</position>
      <position>user4</position>
      <position>user5</position>
      <position>user6</position>
      <position>user7</position>
      <position>user8</position>
      <position>user9</position>
      <position>user10</position>
      <position>user11</position>
      <position>footer</position>
      <position>debug</position>
      <position>syndicate</position>
      </positions>

      ok, so above we have added and informed joomla of 6 new positions.

      BUT, how do we place them in the different positions??
      eg. user 11 to 13 under user 1 to 3?
      user 14 under user 11 etc.

      Help would be appreciated!!

      Thanks 8)
    • antonsev's Avatar
    • antonsev
    • Rocketeer
    • Posts: 53
    • Thanks: 0

    Re: Adding Module Positions

    Posted 15 years 5 months ago
    • can't find a solution... :cry:

      somebody can help me please?

      tks
    • antonsev's Avatar
    • antonsev
    • Rocketeer
    • Posts: 53
    • Thanks: 0

    Re: Adding Module Positions

    Posted 15 years 5 months ago
    • is there any secret in this?? or what??
      is it impossible?? 8)
  • Re: Adding Module Positions

    Posted 15 years 5 months ago
    • There are a couple of things that you will need to add to the index.php as well as the rt_util.php files as well as the tempateDetails.xml file.

      So for example I added: two modules below the bottom module. So in the index.php file I added the following:

      <!-- Begin User 10-11 Modules -->
      <?php if ($this->countModules('user10 or user11')) : ?>
      <div id="mainmods4" class="spacer<?php echo $mainmod4_width; ?>">
      <jdoc:include type="modules" name="user10" style="afterburner" />
      <jdoc:include type="modules" name="user11" style="afterburner" />
      </div>
      <?php endif; ?>
      <!-- End User 10-11 Modules -->

      The in the rt_utils.php file I added the following:

      $mainmod4_count = ($this->countModules('user10')>0) + ($this->countModules('user11')>0);
      $mainmod4_width = $mainmod4_count > 0 ? ' w' . floor(99 / $mainmod4_count) : '';

      Finally, you need to add to the templateDetails.xml file the module positions.

      <position>user10</position>
      <position>user11</position>

      So that adds the modules, now I need to work on the css part, but at least this is a start.
    • antonsev's Avatar
    • antonsev
    • Rocketeer
    • Posts: 53
    • Thanks: 0

    Re: Adding Module Positions

    Posted 15 years 5 months ago
    • Thanks Timothy!! :mrgreen:

      It's nice to learn these things especially after you have a complete web ready and you need to add something after some time!! 8)

      Will eagerly wait for you CSS part :D

      Thanks :cheesy:
  • Re: Adding Module Positions

    Posted 15 years 5 months ago
    • in the css files you will need to add the following (in bold):


      #mainmods, #mainmods2, #mainmods3, #mainmods4 {overflow:hidden;padding-top: 0px;padding-bottom: 0px;}

      #mainmods4 {background: url(../images/mainmods_4.png) 0 0 repeat-y;border-top: 0px solid #fff;border-bottom: 0px solid #fff;color: #fff;
      }


      You can certainly format as you wish but at a minimum you'll need to add something in the stylesheet.

Time to create page: 0.086 seconds