Do you need us to submit a patch for any of this, or do you have that under control UncleCheese?
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
- Previous 10 entries
- 1
- Page 22(current)
- 3
- Next 10 entries
Yes, please post a diff if you can. Thanks again.
Attached is a diff of all the above changes applied to revision 91. I hope I got everything noted so far, and that this helps -- although I am still experiencing one problem with links to CalendarEvents. I'm just getting into it, so I'll post more later if I can clarify it.
The CalendarEvent->CalendarBackLink() function gets messed up in certain scenarios. If $_GET['CalendarStart'] contains a value, then it gets added onto the backlink, breaking the link.
I'm not sure if I'll ultimately need this in my templates, so I'm not digging in right now to understand the intentions of this function. I don't know why it's doing more than simply `return $this->Parent()->Link()`. Whatever the intention, perhaps it's somehow broken by nested urls.
Any obvious solutions?
CalendarBackLink() will preserve any filters you had applied to the calendar when clicking into the detail page. It's kind of silly. Probably ought to just session that data.
Without moving that to the session, would it preserve the same functionality to add it to the link's query string (preserving the current query string) instead of using the /start/end structure?
I'm not sure what you mean.. can you give me an example?
Say you're looking at
www.mysite.com/events/summer-fun/?start=07072010&end=08082010
then the return link under 2.4b1 currently points to something like
www.mysite.com/events/events/07072010/08082010
I'm wondering if instead it could just link to
www.mysite.com/events/?start=07072010&end=08082010
These example links may be wrong; I don't currently have this functionality in my working site. I'm just making these up from what I remember. Hopefully that explains what I mean by the query string.
- Previous 10 entries
- 1
- Page 22(current)
- 3
- Next 10 entries