Wednesday, 26 September 2018
  1 Replies
  1.1K 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
  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.