tx_cal_phpicalendar_model->getLinkToEvent does not work in/for single view
|Priority:||Should have||Due date:|
|Assignee:||Mario Matzulla||% Done:||
|Category:||Calendar Views||Spent time:||-|
I just modified the default single view and add an "similar" event list. Which events are similar contains on a bit unlogic "logic" so I will not explain this here. I get a event list at all. Fine so far. Now I try to list the events like the already available related event view (or location view with events at the same location).
For the list I try to link each event to its single view. Thats why I call getLinkToEvent function with different parameters but all results are a link which is not valid at all. All I get is the error view "Calendar Base Error Message: Missing or wrong parameter. The event you are looking for could not be found. Note: Please verify your URL parameter: tx_cal_controller[uid]" when I click on the links.
I use realUrl with autoconf and Calendar Base 1.4.1 (so no special configuration just the hook from Calendar Base).
A good/working link to an event looks like this: http://mysite/calender_site/detail_site/calendar/2012/02/02/event/tx_cal_phpicalendar/event_title/?tx_cal_controller%5Blastview%5D=view-month%7Cpage_id-41&cHash=1b52ae66a1db20a0bfd631809f2e21c9
The generated link looks like this: http://mysite/calender_site/detail_site/calendar/2012/02/02/event/?tx_cal_controller%5Blastview%5D=view-month%7Cpage_id-41%7C%7Cview-event%7Cpage_id-43%7Cgetdate-20120202%7Cuid-19%7Ctype-tx_cal_phpicalendar&tx_cal_controller%5Buid%5D=17&cHash=425c6f688f854f9348763a657cd07b9c
When I edit the generated link and add the "tx_cal_phpicalendar/event_title" into the right position it works. So maybe something goes wrong here because of realUrl-CalendarBase-autoconf (Calendar Base realUrl hook)?
May thats also the reason why other event lists in location/detail views (related event) are also not linked at all. But a linkless list within a/the browser/internet is not very useful I think...
Updated by Thomas Kowtsch about 1 year ago
- Assignee set to Mario Matzulla
- Target version set to 1.5
Assigning initially to Mario and to v1.5 - still might be shifted to a later release