This topic contains 18 replies, has 6 voices, and was last updated by Ninja Lead 10 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
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
1 user says Thank You to Ninja Lead for this useful post
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
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
1 user says Thank You to Ninja Lead for this useful post
This topic contains 18 replies, has 6 voices, and was last updated by Ninja Lead 10 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum