test
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • Elinam21 Friend
    #939537

    How can I Add Adsense Code or module position under ACM Featured News Style 1 Slider. How do I achieve this.


    1. adsense
    pavit Moderator
    #939582

    Hi

    Below is showed procedure to add new position.

    Open this file /templates/ja_teline_v/acm/news-featured/tmpl/style-1.php and find

    <?php elseif (count($leading)): /* Single Leading item */ ?>
                        <?php echo JATemplateHelper::render($leading[0], 'joomla.content.intro', array('item' => $leading[0], 'params' => $aparams, 'img-size' => 'big')); ?>
                    <?php endif; ?>
                </div>
    
                <!-- //Leading -->
            <?php endif ?>
    
            <?php if ($intro_count = count($intro)): ?>
                <?php
                $aparams->set('show_intro', $aparams->get('show_intro_text', $show_intro));
                $aparams->set('show_category', $aparams->get('show_intro_category', $show_category));
                $aparams->set('show_readmore', $aparams->get('show_intro_readmore', $show_readmore));
                $aparams->set('block_position', $aparams->get('intro_block_position', $block_position));
                ?>

    add the new module call just below the <?php endif ?> in this way :

            <!-- Banner new -->
            <div class="banner">
                <?php
                $document = JFactory::getDocument();
                $renderer = $document->loadRenderer('modules');
                $position = "banner-new";
                $options = array('style' => 'T3xhtml');
                echo $renderer->render($position, $options, null);
                ?>
            </div>
            <!-- // Banner new -->

    In this way you added the new position banner-new
    open this file /templates/ja_teline_v/templateDetails.php and add the new position name below section

    Now you can publish your module in banner-new position


    1. Screenshot_1-5
    2. Screenshot_2-2
    3. Screenshot_3-2
    Elinam21 Friend
    #939593

    Hello Pavit, Thanks for the response but i am sorry to announce , it didn’t work. I got an error 500.
    Please see the attached Screen Shots


    1. add_module
    2. add_position
    3. error
    pavit Moderator
    #939606

    Hi
    First to post here the trick I tested it on my local installation and it worked
    Share here as private reply a temp super user account to your backend I will modify it for you

    Elinam21 Friend
    #939608
    This reply has been marked as private.
    pavit Moderator
    #939615
    This reply has been marked as private.
    Elinam21 Friend
    #940703

    Thanks a million it working.but hope I don lose he changs after an upgrade

    pavit Moderator
    #940859

    it working.but hope I don lose he changs after an upgrade

    Hi

    You can use local folder to move your modified files and avoid them to be overrided when modules will be updated take a look HERE

    stazzy Friend
    #954828

    Good day @pavit followed same step and am getting the 500 error. Pls whats the solution? THANKS

    pavit Moderator
    #955239

    Good day @pavit followed same step and am getting the 500 error. Pls whats the solution? THANKS

    I answered to your question on another topic you opened

    stazzy Friend
    #955241

    Yes Sir. Thanks

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

This topic contains 10 replies, has 3 voices, and was last updated by  stazzy 8 years, 4 months ago.

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