• Vincent Massol
    Vincent Massol, 2014/02/12 10:45

    Great extension! Would be nice to explain in more details the differences with the FullCalendar extension and to provide more screenshots (for example what happens when you click "create event" emoticon_smile).

    Also would be nice to fill the compatibility field to know what version of XWiki is required to install this extension. 

    Thanks a lot!

    • Clemens Robbenhaar
      Clemens Robbenhaar, 2014/02/15 11:07

      Ah, there is a compatibility field! emoticon_wink Filled in something, thanks!
      If adding and editing events would just look like they should ... well, I added something preliminary how it looks right now.

      • Vincent Massol
        Vincent Massol, 2014/02/16 09:46

        Very nice documentation now, thanks a lot!

  • Ktulhu O
    Ktulhu O, 2015/01/06 14:35

    Hello, please help!

    How to change first day to monday?

    • Clemens Robbenhaar
      Clemens Robbenhaar, 2015/01/08 11:35

      By default the first time of the week is Sunday for the English translation.
      You can change this in the page "MoccaCalendar.MoccaCalendarTranslations". Look for the translation string MoccaCalendar.calendar.firstDayOfWeek=0. The 0 means Sunday; change this to  MoccaCalendar.calendar.firstDayOfWeek=1 for Monday.

      Alternatively you can change this separately for every calendar by editing its calendar page in the "object" editor; you can find a setting for "First day of week" in the calendar macro of the "Content" section.

      • Ktulhu O
        Ktulhu O, 2015/01/17 12:15

        Sorry, but where is page "MoccaCalendar.MoccaCalendarTranslations"? I can't find it.

        • Clemens Robbenhaar
          Clemens Robbenhaar, 2015/01/17 16:46

          Ah, I forgot: because it is a "technical page", it is set to "hidden". You need to go to your user profile, section "Settings", and set "Display hidden documents" to "true". Afterwards you should be able to find the page e.g. in the Document Index of the "MoccaCalendar" space. (You can set "Display hidden documents" to false afterwards, of course).
          The alternative is to go to http://localhost:8080/xwiki/bin/view/MoccaCalendar/MoccaCalendarTranslations directly (adapt the URL to the host name, etc of your installaton).

  • Gaël PAVIET SALOMON
    Gaël PAVIET SALOMON, 2015/03/05 13:45

    Hi,
    I need some help on an option. On my xwiki, hours are display like that :"8a, 9a,...12p, 1p,..."
    How can i change this in "08:00","12:00",...like the first screenshot ?

    I find too MoccaCalendarTranslations file, but can i change the day (manually or automatically) in Fr ? 

    Thanks to your help.

    • Clemens Robbenhaar
      Clemens Robbenhaar, 2015/03/05 18:20

      Since version 3.2 MoccaCalendar shares some translations with Full Calendar. This includes the time format.

      You can find the translations for Full Calendar in Calendar.Translations as:

         xwiki.calendar.timeFormat=h(:mm)t
         xwiki.calendar.axisFormat=h(:mm)t

      You can change this to hh:mm for the desired result.

  • Jan Kappert
    Jan Kappert, 2015/06/02 12:07

    Hello,
    I have a question, i have created a new page and added a macro. On that page i like to see only agenda appointments from 1 agenda and not from all other agenda's is that possible?

    Greetings and thnx for you help.

    • Clemens Robbenhaar
      Clemens Robbenhaar, 2015/07/08 10:16

      You can edit the macro in the following:

      1. set the field "Show events from ..." to page
      2. type in the reference to the calendar whose events you want to show in the next field "Calendar Page" in the usual Space.Page syntax.

      In wiki syntax this will look like:
      {{moccacalendar filter="page" calendarDoc="MoccaCalendar.MySpecialCalendar" /}}

  • beldaz
    beldaz, 2015/08/12 11:09

    Browse Source link is broken

  • Serge Marcotte
    Serge Marcotte, 2015/08/19 20:59

    When filter = "space" creation of new event always goes to MoccaCalendar space. Don't know if it help
    but I change the macro so it can now save on the current space the event. I change into the macro, variable $eventUrlTemplate ... 'MoccaCalendar' by $doc.space().

    There could by a class for having all the configuration.

    Question, when the filter = "space" it will be nice to have only the calendar that are in relation of the space when I create a new event.

    Thanks for everything.. like it verry much this application.

    • Clemens Robbenhaar
      Clemens Robbenhaar, 2015/08/20 12:13

      Thanks for the bug report. I have applied the change to the sources on github and it should be included in the next release (see MOCCACAL-75)

      About only showing the calendars of the current space - I guess this needs a bit more thought to handle all use cases (use MOCCACAL-76 for ideas, suggestions, etc). Probably it really needs a separate configuration management page, something I tried to avoid for now ...

      Anyway, a fix that should work in your use case is:

      1. go to the page MoccaCalendar.MoccaCalendarEventSheet and open it in the wiki editor
      2. look for code like
        #set($hql = ", BaseObject as obj where doc.fullName=obj.name and doc.name!='MoccaCalendarTemplate' and obj.className='MoccaCalendar.MoccaCalendarClass' order by doc.title, doc.name")
          ; <label for="calendar">$escapetool.xml($services.localization.render('MoccaCalendar.calendar'))</label>
          : <select id="calendarParent" name="$parentParamName">
        #foreach($item in $services.query.hql($hql).execute())
      3. replace it with
        #set($hql = ", BaseObject as obj where doc.fullName=obj.name and doc.space = :space and doc.name!='MoccaCalendarTemplate' and obj.className='MoccaCalendar.MoccaCalendarClass' order by doc.title, doc.name")
          ; <label for="calendar">$escapetool.xml($services.localization.render('MoccaCalendar.calendar'))</label>
          : <select id="calendarParent" name="$parentParamName">
        #foreach($item in $services.query.hql($hql).bindValue( 'space', $calendarDoc.getSpace() ).execute())
  • BJ Quinn
    BJ Quinn, 2016/02/03 00:33

    How do I set the date format on the event page to be MM/dd/yy instead of day first?

    • Clemens Robbenhaar
      Clemens Robbenhaar, 2016/03/21 15:15

      You can go to the "class" page of the event class; it is in:
      .../xwiki/bin/view/MoccaCalendar/MoccaCalendarEventClass.
      Please edit this page in the "class editor", and open the fields "Start Date" and "End Date". Both have a "Date format"  field, where you can type in e.g. MM/dd/yyyy h:mm a for a more "US style" format. 

  • Martin Macko
    Martin Macko, 2016/11/16 15:54

    Hi guys,

    After upgrading xwiki from version 7.1.4 to 8.4 (final) we are facing problem with mocca calendar 2.5.3. Everything looks fine (old events remained the same and they appear in calendar) but we are unable to create event. Once we fill required fields, we press save button and save notification at the bottom of page appears BUT no event is created. In catalina logs I can see the following:

    2016-11-16 15:22:15,600 [ourwiki/view/Main/] WARN  .o.i.DefaultObservationManager - The [org.xwiki.localization.wiki.internal.OnDemandDocumentTranslationBundle] listener is overwritting a previously registered listener [org.xwiki.localization.wiki.internal.ComponentDocumentTranslationBundle] since they both are registered under the same id [localization.bundle.document:operations:Calendar.Translations]. In the future consider removing a Listener first if you really want to register it again.
    2016-11-16 15:33:13,995 [ourwiki/edit/WikiManager/randomPageMbnjwr7P3p?template=MoccaCalendar.MoccaCalendarEventTemplate&parentFROM=WikiManager.Dashboard&form_token=CllqL2Xn0xMJVZ1ac&ocalcaction=create&xpage=plain&xhidden=1] WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of getter [com.xpn.xwiki.api.Document.getRealLanguage] in 65:operations:[email protected],69
    2016-11-16 15:33:22,522 [ourwiki/save/MoccaCalendar/test?template=MoccaCalendar.MoccaCalendarEventTemplate&parentFROM=WikiManager.Dashboard&form_token=CllqL2Xn0xMJVZ1ac&ocalcaction=create&xpage=plain&ajax=true] INFO  .a.DefaultAuthorizationManager - [programming] access has been denied for user [xwiki:XWiki.martinmacko] on [operations:MoccaCalendar.MoccaCalendarEventValidation]: security checkpoint
    2016-11-16 15:33:22,533 [ourwiki/save/MoccaCalendar/test?template=MoccaCalendar.MoccaCalendarEventTemplate&parentFROM=WikiManager.Dashboard&form_token=CllqL2Xn0xMJVZ1ac&ocalcaction=create&xpage=plain&ajax=true] WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of getter [com.xpn.xwiki.api.Document.getRealLanguage] in 65:operations:[email protected],69 

    Could you please help?

    Thank you so much.

    • Vincent Massol
      Vincent Massol, 2016/11/17 09:30

      Hi Martin. I'll try to ping Clemens but the best is to ask questions on the XWiki Users Mailing list.

    • Clemens Robbenhaar
      Clemens Robbenhaar, 2016/11/21 15:40

      Looks like the page MoccaCalendar.MoccaCalendarEventValidation has been installed without programming rights; i.e. by a local admin of the operations  subwiki. Uninstalling and installing the extension via global admin should work. (Uninstalling does not remove the events you have created, but in case you are not sure, make a backup first) 

      • Martin Macko
        Martin Macko, 2016/11/22 13:48

        Guys u rocks! emoticon_smile After uninstalling and installing with global admin it works again!

        Thank you for your help!

Get Connected