0
Welcome Guest! Login
0 items Join Now

adding a custom module in Afterburner

    • felix001's Avatar
    • felix001
    • Rocketeer
    • Posts: 65
    • Thanks: 0

    adding a custom module in Afterburner

    Posted 14 years 11 months ago
    • can anyone tell me how to add a custom module position to the afterburner template. I need to add a search box within the nav menu.

      my site is http://www.fir3net.com

      many thanks,
  • Re: adding a custom module in Afterburner

    Posted 14 years 11 months ago
    • Hello,

      You should be able to create the module under the module manager and than just set its position as navigation.

      Is this what your looking for?

      Cheers
    • felix001's Avatar
    • felix001
    • Rocketeer
    • Posts: 65
    • Thanks: 0

    Re: adding a custom module in Afterburner

    Posted 14 years 11 months ago
    • sorry i may of made my request that clear.
      What i require is to create a new module position. And then add my module to this positon rather then add my module to one of the already configured positions.

      My goal is to add a search box to the right hand side of the nav bar.

      Any ideas ??
  • Re: adding a custom module in Afterburner

    Posted 14 years 10 months ago
    • Hello,

      Oh ok so in the following code of your index.php
      <div id="nav">
      <jdoc:include type="modules" name="nav" style="none" />
      add 
       
      <jdoc:include type="modules" name="positionname" style="none" />

      You will then need to add the following into your templateDetails.xml
           <positions>
                <position>top</position>
                <position>nav</position>
      under here add
      <position>positionname</position>

      This will then create a new module position in the template in the same area as your nav menu. you will need to css it a bit i believe.

      Cheers
    • felix001's Avatar
    • felix001
    • Rocketeer
    • Posts: 65
    • Thanks: 0

    Re: adding a custom module in Afterburner

    Posted 14 years 10 months ago
    • Thanks. Ive can see the new module and have added it to the CSS as custom10 but any changes i make to the CSS doesnt seem to effect the overal position. I ideally need it to be fixed to the far right.
      To be fair though I dont really know much about CSS yet, so im prob make a simple mistake.

      Thanks for all your help :D
  • Re: adding a custom module in Afterburner

    Posted 14 years 10 months ago
    • well you could wrap that module position in say <div class="positionclass">POSITION HERE</div> and then in your css add div.positionclass{float:right;}

      Hope this helps :)
    • felix001's Avatar
    • felix001
    • Rocketeer
    • Posts: 65
    • Thanks: 0

    Re: adding a custom module in Afterburner

    Posted 14 years 10 months ago
    • Thanks ill give that a shot. I also wondered how to move my advertisment banner which is currently to the far left into the centre ?

      Many Thanks,
  • Re: adding a custom module in Afterburner

    Posted 14 years 10 months ago
    • Hello,

      I would add the following to your light4.css .module-body In my firebug this centred your advertisement.
      text-align:center;

      Cheers
    • felix001's Avatar
    • felix001
    • Rocketeer
    • Posts: 65
    • Thanks: 0

    Re: adding a custom module in Afterburner

    Posted 14 years 10 months ago
    • OK cool. Though this wil centre to modules that I still require to the right, which is the popular and recent article modules.

      Ill prob need to seperate these in in the CSS. When you previously said add the code :

      <div class="positionclass">POSITION HERE</div>

      Where do I add this ?
  • Re: adding a custom module in Afterburner

    Posted 14 years 10 months ago
    • this would be added in the index.php around your module include. if that makes sense

      Cheers

Time to create page: 0.065 seconds