- Posts: 93
- Thank you received: 3
Getting category ID
12 years 9 months ago #137483
by bettston
Getting category ID was created by bettston
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
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.
12 years 9 months ago #137516
by nicolas
Replied by nicolas on topic Getting category ID
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
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.
12 years 9 months ago #137535
by bettston
Replied by bettston on topic Getting category ID
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
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.
Less
More
- Posts: 12953
- Thank you received: 1778
12 years 9 months ago #137551
by Mohamed Thelji
Replied by Mohamed Thelji on topic Getting category ID
Hi,
The best solution will probably be to directly check it by using some PHP function like var_dump for example.
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.161 seconds