Jump to:

10928 Posts in 2612 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » Preview: Event Calendar Module

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
Go to End
Author Topic: 40669 Views
  • George
    Avatar
    Community Member
    41 Posts

    Re: Preview: Event Calendar Module Link to this post

    When I create a calender event, and want to show the event page I get a XML Parsing Error: not well-form

    <h3 class="summary"><a href="/new-calendarevent/2009-04-30?CalendarStart=2009-04-10&CalendarEnd=2009-10-10">New CalendarEvent</a></h3>
    ----------------------------------------------------------------------------------------------------------------------------------------^

    Announcemenets are working well.

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Preview: Event Calendar Module Link to this post

    That looks like the & wasn't correctly escaped. When you look at the source code... what do you see & or &amp; ?

  • George
    Avatar
    Community Member
    41 Posts

    Re: Preview: Event Calendar Module Link to this post

    its & in the page source.

    The event is shown correctly in the event list, but when I have a date/month filter then I get this error.

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Preview: Event Calendar Module Link to this post

    Yes, that's because of the URL that's being generated. It contains an & which should be escaped as &. You should be able to fix it by changing Calendar.php. Go to the buildFilterString function and change "&$key=$value"; to "&amp;$key=$value";

    @UncleCheese: It's probably a good idea to change this in your repository too. Generally you should always use &amp; instead of & (when generating html or xml source)

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: Event Calendar Module Link to this post

    I thought of that, but won't it pass &amp; into the URL instead of &? I suppose putting a urlencode() on it would also be useful.

    Or you could just lose the stupid xml doctype. Those things are nothing but trouble.

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Preview: Event Calendar Module Link to this post

    Hello UncleCheese
    No, the &amp; wont be passed to the URL. &amp; is perfectly valid (X)HTML and will always be rendered as &,even for URLs (eg. when you open the URL). You should use &amp; in URLs. Just try it.

  • dreamstudio
    Avatar
    Community Member
    48 Posts

    Re: Preview: Event Calendar Module Link to this post

    You put the $MonthNavigator feature back in, the only question I have about it is, is there a way to put the year after the month, as people will see april in the middle and then click say January above it.. then it gets confusing which year your in .... is there a simple way to tag on a 2 digit year afterwards?

  • dreamstudio
    Avatar
    Community Member
    48 Posts

    Re: Preview: Event Calendar Module Link to this post

    I upgraded the module to the latest revision and see it has the dataobject manager method for adding dates etc, the only problem is if you try to add a repeating event it will just come up saying "To repeat an event, you must specify a date first." even though I have added in a date. or even on old events I had it wont let me edit the repeat event. The repeat event icon has no tick yet it shows the repeating date

    40669 Views
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.