Keyword

Is it possible to split extra field's values?

  • mastafu
  • mastafu's Avatar Topic Author
  • Offline
  • New Member
More
11 years 8 months ago #109464 by mastafu
Hi everybody,

I have such a problem. I am builing job portal with job offers and filter, that user can use to filter certain jobs.

I have 2 drop-downs, position and country. My client wants the filter to include all countries and all positions fields.

So i have to assign (in extra fields) a country and all countries extra field to a job offer.

The problem is that I don't want to show a "all countries" extra field value in a listing on the front page.
So I am looking for a way to maybe split Country extar field's values and give them specific classes and then hide the one I don't want, or hide it at php level in sub template.

Anyone can help me with that problem?

Regards,
Peter

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #109465 by william white
Replied by william white on topic Re: Is it possible to split extra field's values?
Sounds like a custom job, there may be an eaiser way to do it. i would post this in professional help wanted section

Please Log in or Create an account to join the conversation.

  • mastafu
  • mastafu's Avatar Topic Author
  • Offline
  • New Member
More
11 years 8 months ago #109466 by mastafu
I was hoping that maybe adding <span> elements in item.php, would help, but for some reason when I do that my extra field elements disappear :).

else if ($rows[$i]->type == 'multipleSelect')
{
foreach ($json->decode($rows[$i]->value) as $option)
{
if (@in_array($option->value, $object->value))
{
$values[] = $option->name;
}

}

$value = @implode(', ', '<span>'.$values.'</span>');

}

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum