We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21191
    • 236 Posts
    Maybe I’m dense, one thing I noticed was that I did not get a date picker, I tried making some events but I fear I goofed the date. I’m testing this local so I can’t give a url sorry.

    I guess that would be my only beef, that and these should be modx documents, then they can be searchable, rss able, etc.
      ~Shawn Himmelberger
      Check out my MODx Development and MODx Design Company - Himmelberger Design
    • Quote from: jaredc at Dec 23, 2007, 08:42 PM

      <div id="myLittleCalendarThingy">
      [!EasyEvents_MiniCalendar!]
      </div>
      


      Then you need to be sure that your customs file has "myLittleCalendarThingy" as the mini calendar div.
      I found two issues in the beginning here:

      1. It seems to matter in what form you enter the date. When I entered 01-01-2008, some things worked and some didn’t. When I entered Jan 01, 2008 it all worked fine.

      2. I copy/pasted the containers and snippet calls from the documentation, and stupidly pasted into the document content with the RTE enabled. Took reading this, then checking the document’s source to see that TinyMCE had helpfully converted the quote marks in the tags to HTML entities. Corrected that (and turned off the RTE for that document) and now everything works fine, just waiting for styling.

      Anybody interested can take a look at everything on my sottwell.com demo site.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
      • I do find one thing that did not behave as expected. When you view an event’s details, then go to a different month view, the event details area doesn’t switch back to the list of events for the month selected; the detail view remains (this is on a single-page setup).
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
        • Question. The initial page load shows the "Coming events" for the first viewable month’s events only. Is this by design? Apparently if there are no events in (for example, using the current month) December or January, nothing is shown in the "Coming events".
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
          • Since this is a rather complex display, I have added a bit of code to allow the insertion of a css file for the calendar:
            /* Modified Dec 25, 2007 by sottwell
            * added function to check for css file in snippet configuration or parameters
            */
            
            if(isset($ee_css)) {
                if(is_file($ee_css)) {
                    $modx->regClientCSS($ee_css);
                }
            }
            

            For myself, I added
            &ee_css=CSS file;text;assets/modules/easyEvents/ee_css.css

            to the EasyEvents_MiniCalendar snippet’s configuration. It could go in the snippet call just as well, and it can point to wherever you put the file and whatever you choose to name it. Makes styling this puppy a lot easier.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
            • Interesting... in this month’s calendar, November 25 is visible at the beginning. If I give a style to the "ee_today" class, both November’s 25th and December’s 25th get the style. If I add more to the css selector for the ee_prev and ee_next classes then it overrides the ee_today class. I would think it would be better if the days from the previous and next months didn’t get that classname at all.

              http://www.sottwell.com/ee.html
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
              • If anybody’s interested, here’s the CSS file I used for the calendar on my sottwell.com site.
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org
                • I do hope you don’t mind my playing with your toy...

                  I’ve combined the two snippets, with parameters to show/not show the calendar or the list, and put each output into a placeholder. Now you can just call the snippet once at the beginning of the page, and use the placeholder to put the calendar and the list where you want them. It works something like the AjaxSearch and the MaxiGallery snippets.

                  Of course, once you click on an event day in the calendar, that event shows in the container under the calendar, then it either displays the event details or sends you to the event detail page as normal. So even if you don’t want the "coming events" list to show, you still have to put the container divs where you want that to show; but you don’t have to put the placeholder for the list.

                  There is a method to this madness; I want to be able to coordinate the listing with the month display when they are both on the same page. I’m also going to break out all the text strings into a language file. And I also want to be able to reset that list; as it is you have to refresh the page to get back to the "coming events" list once you view the details of a given item (again, when it’s all on the same page).
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                  • Hm. I seem to have run into a problem. Using the original two snippets, I find that if you set it to use a different page for the event details, the listed events will only have the link to the details page if you do not move the calendar from the initially displayed month. As soon as you change the month, all the listed event links are to the same page.
                      Studying MODX in the desert - http://sottwell.com
                      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                      Join the Slack Community - http://modx.org
                      • 13577
                      • 302 Posts
                      LOL

                      Keep it coming Susan! I’m on vacation but I’ll hit this hard when I get back to work. This thing was very purpose built - as in our purpose. I released it to the MODx’ers out there because I figured what the heck. Might as well share if anyone needs something similar. So this is the kind of feedback I was hoping for.

                      Incidentally, the coming soon picks the next ten events from like the coming week or so. I don’t recall exactly. I thought I might want to make that time span configurable for those who only have a few events a week. Just haven’t done it yet.

                      And yes, if they were MODx docs, they would be searchable, but it would make the queries a bit more complex, and again, for our purposes, time to live was priority. I’ll give it more thought. I talked to OpenGeek about it and we seemed to agree this was a solid direction, but my short term memory is expired on that issue so I can’t recall all the justification for it huh

                      More later! I look forward to a new version release. Thanks for all the testing.
                        Standard Disclaimer
                        I could be totally wrong.