Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
    Posts
  • Ninja Lead Moderator
    #513246

    You can limit related items as follows :

    Open templates/ja_magz/templateHelper.php file and file public static function related($item, $count = 3)

    you need to change :

    Line 495:

    $db->setQuery($query);

    Change to

    $db->setQuery($query, 0, $count);

    Now, related items will show 3 if you want other value you can change $count value

    dpchap015 Friend
    #513412

    thanks its working.

    but are you sure it will not effect the others items setting.(because its like a global setting)

    i template/html/mod-latesnews/focus.php
    i found the code of related item
    there is code of [PHP] <?php foreach ($related as $item) : ?>[/PHP]line 213
    is it possible to limit the values by change this code

    Ninja Lead Moderator
    #513591

    I have changed within function related of templates/ja_magz/templateHelper.php file is changed before selecting get data from database

    You can change foreach condition code from template/html/mod-latesnews/focus.php file but after getting relate data from database

Viewing 3 posts - 16 through 18 (of 18 total)

This topic contains 18 replies, has 6 voices, and was last updated by  Ninja Lead 11 years ago.

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