test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • vernontee Friend
    #964821

    Greeting, is there any way to put the short code in the item.php in ja directory, for example ,I like to put the short code
    [load module id] or [lightbox]

    Ninja Lead Moderator
    #965679

    Hi,

    If you want to load the position in item.php file you can use this way

    <?php 
    $ads_modules = 'leading-sidebar';
    $attrs = array();
    $result = null;
    $renderer = JFactory::getDocument()->loadRenderer('modules');
    $ads = $renderer->render($ads_modules, $attrs, $result);
    if ($ads) : 
        echo $ads;
    endif;
    ?>

    and leading-sidebar is position name.

    Regards

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 1 reply, has 2 voices, and was last updated by  Ninja Lead 8 years, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum