I've been able to get
< ?php echo "$Itemid";? >
to return the current menu ItemID, but what I would really like to do is return the current item's category from K2. I've tried several pieces of code, including
< ?php echo "$cid";? >
< ?php echo $this->item->category->id; ? >
< ?php echo $this->category->id; ? >
< ?php echo "$this->cid"; ? >
< ?php echo $this->cid; ? >
Is there a way to get the category ID to be inserted into a template CSS claas or as part of a URL?
Maybe I'm missing something....
< ?php echo "$Itemid";? >
to return the current menu ItemID, but what I would really like to do is return the current item's category from K2. I've tried several pieces of code, including
< ?php echo "$cid";? >
< ?php echo $this->item->category->id; ? >
< ?php echo $this->category->id; ? >
< ?php echo "$this->cid"; ? >
< ?php echo $this->cid; ? >
Is there a way to get the category ID to be inserted into a template CSS claas or as part of a URL?
Maybe I'm missing something....