test
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • stazzy Friend
    #659494

    Morning admin. I noticed if i remove more news from my featured news, my banner 1 module will not work any longer. Asin any image there will disappear. view pic.

    Ninja Lead Moderator
    #659788

    It’s very hard to suggest the solution for you, let me know which file did you change and pm me URL of your site, admin login and FTP account, I will check it directly on your site.

    stazzy Friend
    #660069

    Sent to your inbox sir. Thanks.

    Ninja Lead Moderator
    #660682

    <em>@stazzy 487044 wrote:</em><blockquote>Sent to your inbox sir. Thanks.</blockquote>

    Look at the screenshot here, you will see the module in banner-1 position is working fine

    banner-1 position doesn’t have any constraints to the number of articles show there. What you need to make sure is:

    + Module which is assigned to banner-1 position always enabled

    + Clear cache from Admin area from System > Clear Cache

    stazzy Friend
    #660721

    Sir you dont get me. REMOVE THE MORE NEWS FEATURED ARTICLE ABOVE THE LATEST/MOST READ AND CLEAR CACHE, U LL SEE BOTH THE MORE NEWS FEATURED ARTICLE AND THE LATEST/MOST READ WILL NOT SHOW ANYMORE.

    stazzy Friend
    #745329

    Sir you dont get me. REMOVE THE MORE NEWS FEATURED ARTICLE ABOVE THE LATEST/MOST READ AND CLEAR CACHE, U LL SEE BOTH THE MORE NEWS FEATURED ARTICLE AND THE LATEST/MOST READ WILL NOT SHOW ANYMORE.

    Ninja Lead Moderator
    #661101

    I fixed the problem directly on your site.

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

    find and change


    <?php if (count($links)): ?>
    <?php
    $aparams->set('show_intro', 0);
    $aparams->set('show_readmore', 0);
    $aparams->set('show_category', $aparams->get('show_link_category', $show_category));
    $aparams->set('show_hits', $aparams->get('show_link_hits', $show_hits));
    $aparams->set('show_author', $aparams->get('show_link_author', $show_author));
    $aparams->set('show_publish_date', $aparams->get('show_link_publish_date', $show_publish_date));
    $aparams->set('block_position', $aparams->get('link_block_position', $block_position));
    ?>

    <div class="col col-md-4 magazine-featured-links">
    <?php if ($show_block_links_title) : ?>
    <div class="magazine-section-heading">
    <h4 class="line-head"><?php echo $block_links_title; ?></h4>
    </div>
    <?php endif; ?>
    <!-- Links -->
    <div class="magazine-links">
    <?php foreach ($links as $item) : ?>
    <?php echo JLayoutHelper::render('joomla.content.link.default', array('item' => $item, 'params' => $aparams)); ?>
    <?php endforeach; ?>
    </div>
    <!-- // Links -->

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

    to

    <?php
    $document = JFactory::getDocument();
    if (count($links) || $document->countModules ('banner-1')): ?>
    <?php
    $aparams->set('show_intro', 0);
    $aparams->set('show_readmore', 0);
    $aparams->set('show_category', $aparams->get('show_link_category', $show_category));
    $aparams->set('show_hits', $aparams->get('show_link_hits', $show_hits));
    $aparams->set('show_author', $aparams->get('show_link_author', $show_author));
    $aparams->set('show_publish_date', $aparams->get('show_link_publish_date', $show_publish_date));
    $aparams->set('block_position', $aparams->get('link_block_position', $block_position));
    ?>

    <div class="col col-md-4 magazine-featured-links">
    <?php if ($show_block_links_title) : ?>
    <div class="magazine-section-heading">
    <h4 class="line-head"><?php echo $block_links_title; ?></h4>
    </div>
    <?php endif; ?>
    <!-- Links -->
    <?php if (count($links)): ?>
    <div class="magazine-links">
    <?php foreach ($links as $item) : ?>
    <?php echo JLayoutHelper::render('joomla.content.link.default', array('item' => $item, 'params' => $aparams)); ?>
    <?php endforeach; ?>
    </div>
    <!-- // Links -->
    <?php endif; ?>

    <?php

    if ($document->countModules ('banner-1')): ?>
    <!-- Banner -->
    <div class="banner">
    <?php

    $renderer = $document->loadRenderer('modules');
    $position = "banner-1";
    $options = array('style' => 'T3xhtml');
    echo $renderer->render($position, $options, null);
    ?>
    </div>
    <?php endif; ?>
    <!-- // Banner -->
    <?php endif; ?>
    </div>
    <!-- //Right Column -->

    You can check it again let me know if it helps

    fbernardello Friend
    #661697

    Dear @ninja-Lead,
    thank you so much! This code solves the problem!
    I have an open task, and also a support ticket open for the same reason since one month.

    Please, remember to include the code into the next JACM release!

    Regards,
    Federico

    stazzy Friend
    #664714

    Thanks Lead

    stazzy Friend
    #746318

    Thanks Lead

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

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

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