Getting category ID

  • Posts: 93
  • Thank you received: 3
11 years 8 months ago #137483

Hi,
Can you please tell me how to get the category ID when you are in file listing_img_title.php. I hope its either contained in $this or another built in function

Many Thanks


Tony

Please Log in or Create an account to join the conversation.

  • Posts: 84237
  • Thank you received: 13681
  • MODERATOR
11 years 8 months ago #137516

Hi,

If you're talking about the listing_img_title file of the product view, you can do like that: $this->element->category_id
If you're talking about the listing_img_title file of the category view, you can do like that: $this->row->category_id

Please Log in or Create an account to join the conversation.

  • Posts: 93
  • Thank you received: 3
11 years 8 months ago #137535

Hi,
Thats is perfect , exactly what i needed, Is the joomla user group id also available through $this or would i need to create my own variable for that.

Many thanks


Tony

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 8 months ago #137551

Hi,
The best solution will probably be to directly check it by using some PHP function like var_dump for example.

Please Log in or Create an account to join the conversation.

Time to create page: 0.069 seconds
Powered by Kunena Forum