Possible code issue w/ Daily View vs Monthly View

  • finfree
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 2 months ago #14436 by finfree
Hello,

I have discovered a small issue with the hyperlink "code" on the Daily view or Weekly view option of the calendar. The Daily and Weekly "Layout" option returns the incorrect link code when clicking on a specific event to view that events details.


For example:
This link will show the Daily Events for 3/17/2012

severynsports.com/index.php/events/index...012-03-17&Itemid=251

Clicking on the actual event results in an ERROR. (500 - Layout "daily" not found).

The reason is that the event link is
severynsports.com/index.php/events/daily...ew=event&event_id=47

instead of
severynsports.com/index.php/events/daily...ew_event&event_id=47


I would change the PHP code myself, but I cannot seem to find where it is.

Any help is greatly appreciated...

Regards,
Finfree

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

  • finfree
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 2 months ago #14438 by finfree
UPDATE:

I found the files that needed updating.
/components/com_eventbooking/views/calendar/tmpl/

Daily.php and Weekly.php

I modified the <a href> link code to say

<a href="<?php echo JRoute::_('index.php?option=com_eventbooking&task=view_event&event_id='

instead of

<a href="<?php echo JRoute::_('index.php?option=com_eventbooking&view=event&event_id='

This resolved the issue for me...

Thanks,
Finfree

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

Moderators: Tuan Pham Ngoc