0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

Module position on article view

    • RuiGato's Avatar
    • RuiGato
    • Sr. Rocketeer
    • Posts: 209
    • Thanks: 0

    Module position on article view

    Posted 16 years 5 months ago
    • I would like to publish the inset position only in article view, i know that J! only lets you asign modules to a menu item but searching in the forum e saw a code sniped that it seems to be good for me.
      <?php if( JRequest::getVar( 'view' ) == 'article' ): ?>
      &nbsp; &nbsp; <jdoc:include type="modules" name="your_custom_position" />
      <?php endif; ?>
      In Versatility 4 and in my case i could publish a "recent" or "top news" module on the inset position without afecting the frontpage or category/section view.


      Is it possible to replicate that to J1.0 so that the module position is published wen viewing an article at template level?


      This opens lots of possibilities for layout options.

      Any thoughts or recomendations on this?
    • Last Edit: 16 years 5 months ago by RuiGato.
    • twitter.com/ruigato
    • RuiGato's Avatar
    • RuiGato
    • Sr. Rocketeer
    • Posts: 209
    • Thanks: 0

    Re: Module position on article view

    Posted 16 years 5 months ago

Time to create page: 0.054 seconds