Wednesday, 26 September 2018
  1 Replies
  0.9K Visits
0
Votes
Undo
Hi,

I am using Jevnets for Joomla and i am trying to check events for category ids, so i can use this codition: (if $catID == "234";) { do something };

I am using this code:

$catID = array($this->event->catids());

But it only returns the first level 1 category and its sublings when I print it:

print_r(array_values($catID))


Example
Event is in category 1, 1.1, 1.2, 2 and 2.1
But it only echos 1, 1.1, 1.2, not 2 and 2.1

How can this be?

Regards,
Kenneth.
Wednesday, 26 September 2018 23:04
·
#205945
0
Votes
Undo
Hello Kenneth,

The catIds should output all category id's entered into that event, but not ones that are above / parent of it. Is this not what you are seeing?

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

  • Page :
  • 1
There are no replies made for this post yet.