- Posts: 66
- Thank you received: 1
Show additional categories in events listing
- Rusty
- Topic Author
- Offline
- Senior Member
-
Less
More
1 year 5 months ago #162141
by Rusty
Show additional categories in events listing was created by Rusty
In the frontend for the list of events, it shows the main category, is there a way that it can hide the main category but show the Additional Categories the event has been setup with instead?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
1 year 5 months ago #162164
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Show additional categories in events listing
Could you send me link to that page? I will look at it and answer your question
Tuan
Tuan
Please Log in or Create an account to join the conversation.
- Rusty
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 66
- Thank you received: 1
1 year 5 months ago #162167
by Rusty
Replied by Rusty on topic Show additional categories in events listing
Here's the link to the all Events page:
leadershipexchange.gle.world/index.php?o...ents&id=0&Itemid=125
You'll notice it's showing the category of "Matches", we have three subcategories which I want to show in its place instead (along with a link to that category showing all Events that are in the category)
leadershipexchange.gle.world/index.php?o...ents&id=0&Itemid=125
You'll notice it's showing the category of "Matches", we have three subcategories which I want to show in its place instead (along with a link to that category showing all Events that are in the category)
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
1 year 5 months ago #162173
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Show additional categories in events listing
Without knowing the files you customized to have that layout, I can only suggest you some code like this:
$categories = [];
foreach ($event->categories as $category)
{
$categoryUrl = Route::_(EventbookingHelperRoute::getCategoryRoute($category->id, $Itemid));
$categories[] = '<a href="' . $categoryUrl . '">' . $category->name . '</a>';
}
echo implode(', ', $categories);
Regards,
Tuan
$categories = [];
foreach ($event->categories as $category)
{
$categoryUrl = Route::_(EventbookingHelperRoute::getCategoryRoute($category->id, $Itemid));
$categories[] = '<a href="' . $categoryUrl . '">' . $category->name . '</a>';
}
echo implode(', ', $categories);
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 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.