We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15113
    • 5 Posts
    hejho, after updating to Evolution, the backend calendar popup does not appear anymore. So iam not able to create a new event or change dates. Got a tip for me? Thx.
      • 10940
      • 71 Posts
      This is a great snippet.

      I have two questions:
      1) Can I make it so the day of the event in the calender links to the document of the event?

      2) Im having some problems with the Prev/Next Links.
      If I have an event in, say, the next month, if I click on next the calender disappears and I just get the message: "No events found. Check back later."
      Even if I have an event in the current month, it shows the calender but I still get the message: "No events found. Check back later."

      Does that make any sense to anyone?

      Thanks!
      Global
        • 10940
        • 71 Posts
        OK I have figured out the "No events found. Check back later." message and the Next link not showing the calender. It appears I had renamed the EasyEvents_AJAX snippet and had not renamed it when calling it. I still cannot get the paramater &gotoDetailsPage=`1` to work but this might be alright as Im not sure how having mutiple events on one day would work without listing the events for that day first.

        Cheers,
        Global
          • 29626
          • 34 Posts
          Hello,

          Some things to clarify with these snippet:

          - installation process is not enough clear, should be much more documented;
          - lots of problems with events with not the same users webgroup credentials (it does not display all the events but only one category of them, unless I have missed something);
          - you could give a default stylesheet in the snippet package;

          So you should use it only if you need to display events for users with the same credentials.

          Another thing:
          - don’t modify the date format of the tv EasyEvent_Start and EasyEvent_End when you have datas already registered. It could make some datas troubles with events display process. Choose one format, and keep it till the end of time lol.

          Idea is great. But for me, as far as I am concerned, it is not enough strong (too much bugs with the usage I need). Maybe in the future.
            • 5119
            • 90 Posts
            I followed the great instructions below to convert over to Unix time so I can run a ditto call. My ditto call now works (EDIT: No it doesn’t - I was mistaken), but now my EasyEvents list will only display today’s events. All other events are missing. I tried creating a new one just in case it was the change in date format that has screwed up existing events, but it won’t show up either.

            I’m sure it’s something simple, but I just can’t see it. Any ideas?


            Quote from: Mithrandir at Nov 23, 2008, 02:26 AM


            a.) You have to change the TV EasyEvents_Start to "unixtime", because Ditto-Parameter "sortDir" only works with this format (?).

            b.) Append three lines in your config-file in misc-section (german dateformat - change it, if you like):
            $_misc['dittoDateformat'] = '%d.%m.%Y';
            $_misc['dittoTpl'] = 'DE_tplEasyEvent';
            $_misc['dittoSum'] = '5';

            These values will be used in the Ditto-call (set dittoSum to ’all’ if you want to show all events) - see d.).


            c.) You need a chunk [the name is "DE_tplEasyEvent" -see b.)] like this - you have to change the href-part and "28" (id of your calendar-page) to your needs:
            <div class="easyEventsList_group">
                <div class="easyEventsList_heading"><h2>[+date+]</h2></div>
                <div class="easyEventsList_title"><a href="/de/home/kalender/simcopack_online.html?ee_id=[+id+]" onclick="return EasyEvents.getDetails('28',[+id+])">[+pagetitle+]</a></div>
                <div class="easyEventsList_description">[+description+]</div>
            </div>


            d.) Change the snippet "EasyEvents_ListMini" at the end (append second line with "$listDetails .= ..."):
             // Default message if no events found
                if ( !$listDetails )
                {
                    $listDetails .= $g_easyEvents->templify('noEvents',array($g_easyEvents->misc['missingEventsMessagePlaceholder'] => $g_easyEvents->lang['noEvents']));
                    $listDetails .= $modx->runSnippet("Ditto",array( 'parents' => $nodes, 'sortBy'=>'EasyEvents_Start','sortDir'=>'DESC','tpl'=>$g_easyEvents->misc['dittoTpl'],'summarize'=>$g_easyEvents->misc['dittoSum'],'dateSource'=>'EasyEvents_Start','dateFormat'=>$g_easyEvents->misc['dittoDateformat']));
                }
            }
            
            $modx->setPlaceholder($listHolder,$listDetails);
            
            return;
            ?>


            You’re done.
              • 11243
              • 27 Posts
              Check that you didn’t overwrite the code for upcoming events (the few lines above) when you pasted the new code into the snippet. You should be able to find the original code in the snippets/EasyEvents directory.

              Also check that your TVs are named exactly the same as in this code and you have underscores etc. in place. wink
                • 5119
                • 90 Posts
                Oops. Spot-on! Thanks for that. Underscores in particualar are The Enemy (along with dashes and equals signs).
                  • 37242 ☆ A M B ☆
                  • 339 Posts
                  Can anyone get me a hint on how i can change the names of the days?
                  In easyEvents.config.php i can set them, but on the detailes viev (single event), it still appeares in english.

                  Thank you in advance!
                    • 23849
                    • 223 Posts
                    Is there a list of available parameters / placeholders anywhere for this snippet?? And when you call easy events, can you specify a tpl chunk to use for when you want to output the events differently than the default way?

                    ***EDIT***
                    I found a llist of parameters for the "list" view buried deep in a txt file:
                    * todayTitle - Customize the Title used for the "Today" text
                    * comingTitle - Customize the "Coming Soon" text
                    * maxEvents - coming events;integer; default 10
                    * gotoDetailsPage - Go to event page for details (1 true, 0 false);integer;0
                    * configSelect= Which config file suffix to use by default;string;en

                    ***ALSO***
                    Not sure if this is just news to me, but the templates for the list of events are found at the bottom of the config_en file!!

                    It would be great if a parameter could be added to specify a chunk for display. It would also be awesome to be able to limit the list view to "only todays events" or "only coming events".... smiley
                      Nick Hoag
                      Creative Partner
                      The FutureForward

                      http://thefutureforward.com
                      • 23849
                      • 223 Posts
                      Is there a way to call ONLY events that are in the future, using the EasyEvents_ListMini view?
                        Nick Hoag
                        Creative Partner
                        The FutureForward

                        http://thefutureforward.com