We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12584
    • 208 Posts
    Many thanks for your time in taking a look at my site, Great to know where I went wrong and hopefully if anyone else does the same this may help them out.

    Really pleased to have this excellent calendar on my site so thank you once again for time.

    regards

    Ian
      • 12742
      • 20 Posts
      I have set up the snippet and tv’s ok, but how do I create events?
        • 13577
        • 302 Posts
        Page 3 of the documentation gives some guidance on creating events - but the basic idea is this:

        An event is just a document that uses the Easy Event template you created and lives under the calendar root node you specify. So just create documents and be sure to fill in the Easy Events specific fields (start, stop, and hideTime).
          Standard Disclaimer
          I could be totally wrong.
          • 25080
          • 175 Posts
          It work smiley And very well smiley

          ian_m’s problem has help me smiley

          I’m styling it. Thank you so for your work jaredc.

          edit : How can i do to have the "perma link" whitch opent le real document ? ’cause now, when i clic, the article is under the calendar...

          edit : Is it possible to display news title listed on her "EasyEvents_Start" option ?
            • 25080
            • 175 Posts
            I think it’s possible here :
            http://ditto.modxcms.com/tutorials/sort-by-a-date-tv.html

            I try it and give you more information.
              • 19741
              • 90 Posts
              Hi Jared,
              Quote from: jaredc at Mar 17, 2008, 10:10 AM

              Quote from: noahlearner at Mar 17, 2008, 10:06 AM
              ...how do I get it display the events of the month chosen
              Ahem... well currently it doesn’t do that. It shows event lists by day. Not by month. But I like that idea, and have had that notion myself a few times... (along with some other things). That will likely be in a future release.

              But it’s tricky...
              There could be a LOT of events in a month. So which do you choose? Just the first NUMBER of them? But those might not be the important ones... this is why it’s not in there yet.
              i would like this feature, too. Maybe another TV called "priority" could help to build the SQL? Or an optional snippet-parameter ("synchronMonth")?

              Another point: I’m building a multilanguage site (not online yet) and till now i have to duplicate the "EasyEvents.class.php". I got "EasyEvents.class_de.php" and "EasyEvents.class_en.php". In both files the appropiate config is included (easyEvents.config_de.php and easyEvents.config_en.php). The AJAX-page must be duplicated, too.

              I think, the snippets "EasyEvents_AJAX" and "EasyEvents_ListMini" (i changed them regarding an "lang"-Parameter" to include "EasyEvents.class_de.php" or "EasyEvents.class_en.php" ) should manage this - this would be much more elegant.

              Thanks for listening and the great snippet - i hope, you can understand my "d"english.


                Bye,
                Mithrandir
                • 31290
                • 37 Posts
                Is there any way to make the calendar refresh with Ajax to reflect the day you select. I have a class set up for the "selected" day but the calendar doesn’t refresh as you navigate through the calendar with Ajax, it works perfect with JavaScript disabled.

                Another problem I am running in to is the event list somehow gets outside of it’s placeholder it’s nested in when JavaScript is disabled and you navigate through different days. It mainly seems like this happens as you navigate using the month arrows. I have attached a screenshot of this error I am running in to.
                  • 13577
                  • 302 Posts
                  Quote from: VanMeter at Jun 16, 2008, 08:30 AM

                  Is there any way to make the calendar refresh with Ajax...
                  There’s always a way! But as it is written now, no.


                  Another problem I am running in to is the event list somehow gets outside of it’s placeholder...I have attached a screenshot of this error I am running in to.
                  The code would be more helpful than the screen shot. Can you provide a URL?
                    Standard Disclaimer
                    I could be totally wrong.
                    • 31290
                    • 37 Posts
                    Of course! The URL is http://www.wernermn.com/203

                    Just a reminder that this error only happens when JavaScript is disabled.

                    JaredC, I really appreciate your help and enthusiasm. People like you are the ones that make this community (and CMS) stand out! I really love this Calendar system too. Props!
                      • 19741
                      • 90 Posts
                      I think, i got a a solution for multilanguage support and hope, that i won’t forget anything.

                      1.
                      First 4 changes in EasyEvents.class.php (look for $config - sorry, i don’t know how to highlight in code segments):
                      class EasyEvents {
                      
                          var $modx;
                          var $upperDateBoundary,$lowerDateBoundary;
                          var $css, $qs, $misc, $templates, $lang;
                          var $nodes, $subParents,$subParentsList,  $config;
                          // Debug
                      
                          function EasyEvents($nodes=0,  $config='en') {
                              global $modx;
                              $this->modx = &$modx;
                      
                              // Initialize things
                              $this->nodes = $nodes;
                              $this->config = $config;
                              $this->setCustoms($this->config);
                              $this->setDateBoundaries($this->nodes);
                      
                              // Debug
                          }


                      2.
                      and the second 3 changes at:
                       function setCustoms($config='en')
                          {
                              // Initialize empty arrays
                              $this->css = array();
                              $this->qs = array();
                              $this->misc = array();
                              $this->templates = array();
                              $this->lang = array();
                      
                              // Get customs file
                              if ( file_exists($this->modx->config['base_path'].'assets/snippets/EasyEvents/easyEvents.config_'.$config.'.php') )
                              {
                                  include $this->modx->config['base_path'].'assets/snippets/EasyEvents/easyEvents.config_'.$config.'.php';
                              }


                      3.
                      Rename your config files from easyEvents.config.php into easyEvents.config_de.php, easyEvents.config_en.php ...

                      4.
                      Now change your snippets EasyEvents_AJAX and EasyEvents_ListMini. Have a look for:
                      $g_easyEvents = new EasyEvents($nodes);

                      change this line in both snippets to:
                      $g_easyEvents = new EasyEvents($nodes,$config);


                      5.
                      You can add this new parameter to their default properties (see EasyEvents_ListMini.defaultProperties.txt):
                      &config=Language (de or en);string;en


                      6.
                      You still need two or more AJAX-Pages, to have a call like
                      [!EasyEvents_AJAX?&config=`de`!]



                      I’m still hoping for a "synchronMonth"-Parameter (s. Reply #115). Thank you.
                        Bye,
                        Mithrandir