- Posts: 4
- Thank you received: 0
How to make module links go to category instead?
- Streamcode
- Topic Author
- Offline
- New Member
-
Less
More
12 years 9 months ago #17574
by Streamcode
How to make module links go to category instead? was created by Streamcode
Right now Latest events module links goes to the seperate page for the event you click on. But I want it to be linked to the category for the event instead. How do I accomplish that?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
12 years 9 months ago #17608
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: How to make module links go to category instead?
Hi
In this case, you will have to edit the code yourself or find someone to help you. The file need to be modified is modules/mod_eb_events/tmpl/default.php
Regards,
Tuan
In this case, you will have to edit the code yourself or find someone to help you. The file need to be modified is modules/mod_eb_events/tmpl/default.php
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Streamcode
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
12 years 9 months ago - 12 years 9 months ago #17661
by Streamcode
Replied by Streamcode on topic Re: How to make module links go to category instead?
Thank you for your answer! I have found the row where to change the code, but I cant figure out how to get the category id. Can you maybe help me?
The row I have to change is row 28:
<a href="<?php echo JRoute::_('index.php?option=com_eventbooking&task=view_event&event_id='.$row->id.'&Itemid='.$itemId) ; ?>" class="eb_event_link"><?php echo $row->title ; ?></a>
So far I have replaced "task=view_event&event_id=" with "task=view_categories&category_id=". But then after that I need to change so it gets the category id instead of the itemid. How do I do that?
The row I have to change is row 28:
<a href="<?php echo JRoute::_('index.php?option=com_eventbooking&task=view_event&event_id='.$row->id.'&Itemid='.$itemId) ; ?>" class="eb_event_link"><?php echo $row->title ; ?></a>
So far I have replaced "task=view_event&event_id=" with "task=view_categories&category_id=". But then after that I need to change so it gets the category id instead of the itemid. How do I do that?
Last edit: 12 years 9 months ago by Streamcode.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
12 years 9 months ago #17678
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: How to make module links go to category instead?
Hi
Please get the file below, unzip it, get the file and upload to modules/mod_eb_events/tmpl folder. After that, it should work as expected.
Tuan
Please get the file below, unzip it, get the file and upload to modules/mod_eb_events/tmpl folder. After that, it should work as expected.
Tuan
- Streamcode
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
12 years 9 months ago #17723
by Streamcode
Replied by Streamcode on topic Re: How to make module links go to category instead?
Thank you, but it didn't work. Still getting to the items page, not the category.
Maybe I should mention that I use version 1.1 of the module, 1.3.3 of the component and Joomla 1.5.
Maybe I should mention that I use version 1.1 of the module, 1.3.3 of the component and Joomla 1.5.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
12 years 9 months ago #17727
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: How to make module links go to category instead?
Oh
My code was written based on latest version of Events Booking (version 1.4.5). So in this case, I think you will have to submit support ticket sending me administrator and FTP account of your site so that I can edit code directly on your site for you (or it would be better if you can implement it yourself) .
Tuan
My code was written based on latest version of Events Booking (version 1.4.5). So in this case, I think you will have to submit support ticket sending me administrator and FTP account of your site so that I can edit code directly on your site for you (or it would be better if you can implement it yourself) .
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.