Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • mahmoudalmasoud Friend
    #200555

    hi

    the job tag module now in my site is 300 item , how i can make it only 7 or 8

    please it’s very important issue

    thanks ,

    Thanh Nguyen Viet Friend
    #546288

    Hello,

    To limit a number of tag displayed on module, please try solution below:
    – Open the file:
    modules/mod_ja_jobs_tags/helper.php

    Find code snippet below:

    [PHP]$query = “SELECT title, num_jobs FROM #__ja_tags WHERE published=1 “;
    if($params->get(‘ordering’, ‘random()’) != ‘random()’){
    $query .= ” ORDER BY ” . $params->get(‘ordering’, ‘rand()’) . ‘ ‘ . $params->get(‘ordering_direction’, ‘ASC’);
    }else{
    $query .= ” ORDER BY ” . $params->get(‘ordering’, ‘rand()’);
    }[/PHP]

    And add this code below it:
    [PHP]$query .= ” LIMIT 0, 10″;[/PHP]

    Replace 10 with your expected number.

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

This topic contains 2 replies, has 2 voices, and was last updated by  Thanh Nguyen Viet 4 years, 6 months ago.

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