Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • josuehm Friend
    #167500

    Hi,
    We have a problem with two-word location searches from the job list page (i.e. Santa Cruz, or La Paz). The search result seems to only look for “Cruz” or “Paz”.

    The location Job Counter module works fine. It’s only on job listings where we find the issue.

    http://www.curriculum.bo/index.php?option=com_jajobboard&view=jajobs&layout=jalist&Itemid=108

    Please advise. Thanks!

    josuehm Friend
    #410135

    Hello,
    I have fixed this problem by comenting the code below at /components/com_jobboard/views/jajobs/tmpl/themes/your-theme/jalist-item.php

    [PHP]
    <span class=”ja-job-location”>
    <?php if($cats && $jbconfig[‘posts’]->get(‘posts_show_job_location’, 1) ) { ?>
    <!–<strong><?php /*?><?php echo JText::_(‘Location’)?>:<?php */?> </strong> –>

    <?php foreach ($locations as $location) {
    $titleLocation = explode(” “, $location);
    $titleLocation = $titleLocation;
    ?>
    <a href=”<?php echo JRoute::_(‘index.php?option=com_jajobboard&view=jajobs&layout=filter_job_list&location_id=’.$titleLocation.”&Itemid=”.$this->Itemid)?>” title=”<?php echo $location?>”><?php echo $location?></a>
    <?php } ?>
    <?php } ?>
    </span>
    [/PHP]

    and placing this one:

    [PHP]
    <span class=”ja-job-location”>
    <?php foreach ($locations as $d=>$location) { ?>
    <?php $location = trim($location);?>
    <a href=”<?php echo JRoute::_(‘index.php?option=com_jajobboard&view=jajobs&layout=filter_job_list&location_id=’.$location)?>” title=”<?php echo $location?>”><?php echo $location?></a><?php if($d<count($locations)-1) echo ‘, ‘?>
    <?php } ?>
    </span>
    [/PHP]

    It will work with the names of the locations that have more than two words.

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

This topic contains 2 replies, has 1 voice, and was last updated by  josuehm 13 years, 2 months ago.

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