By ittp on Wednesday, 26 September 2018
Replies 1
Likes 0
Views 0.9K
Votes 0
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.
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
·
Wednesday, 26 September 2018 23:04
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post