- Posts: 148
- Thank you received: 4
Get Categories Method
- LAC Webadmin
- Topic Author
- Offline
- Premium Member
Less
More
5 years 3 months ago #120841
by LAC Webadmin
Get Categories Method was created by LAC Webadmin
Hi Tuan,
Is there any method to get categories which includes all categories including subcategories? I tried EventbookingModelCategories but it will only pull the parent categories.
Thanks,
Jackson
Is there any method to get categories which includes all categories including subcategories? I tried EventbookingModelCategories but it will only pull the parent categories.
Thanks,
Jackson
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
5 years 3 months ago #120854
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Get Categories Method
Hi
We don't have that method available. However, you can look at the method EventbookingHelper::getTotalEvent and borrow some code from there to get all children categories of a given category
Tuan
We don't have that method available. However, you can look at the method EventbookingHelper::getTotalEvent and borrow some code from there to get all children categories of a given category
Tuan
Please Log in or Create an account to join the conversation.
- LAC Webadmin
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 148
- Thank you received: 4
5 years 3 months ago #120884
by LAC Webadmin
Replied by LAC Webadmin on topic Get Categories Method
Hi Tuan,
Got it! Just like I thought, I actually borrowed the code from the categories view model.
Thanks,
Jackson
Got it! Just like I thought, I actually borrowed the code from the categories view model.
Thanks,
Jackson
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
5 years 3 months ago #120910
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Get Categories Method
OK, great.
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.