How to make module links go to category instead?

  • Streamcode
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 9 months ago #17574 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.

More
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

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

  • Streamcode
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 9 months ago - 12 years 9 months ago #17661 by Streamcode
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?
Last edit: 12 years 9 months ago by Streamcode.

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

More
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
Attachments:

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

  • Streamcode
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 9 months ago #17723 by Streamcode
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.

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

More
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

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

Moderators: Tuan Pham Ngoc