Zoo item show category information in teaser view

To get the category information for a zoo item you need to put the following code into your renderer file (teaser.php for example)

$categoryInfo = $this->_item->getPrimaryCategory();
$categoryInfo->alias;
$categoryInfo->name;
$categoryInfo->id;

You may be interested in...

Joomla Development

Joomla Development Development, tools, support...



Had enough browsing?

Get in touch

Get in touch

We wont charge you for the inital project meeting. So really you have nothing to lose.

Fill out the form below with as much information as you can provide and we will be in touch with you asap to discuss.

Name(*)
Please type your full name. Also only allowing alpha numeric characters here. Why do you have all this fancy stuff in your name anyway?

Email(*)
Invalid email address.

Phone
Please enter a valid phone number.

Enquiry Type(*)
Invalid Input

Message(*)
Please only use alphanumeric characters in your message

Invalid Input