We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32330
    • 40 Posts
    @Willi

    Thanks very much for this detailed explanation it helps a lot. I didn't realize there was a setting for "containers". I have on a recent install separated resources, for the first time, with unpublished parents so I guess I achieved this without realizing, just to keep things organized.

    In the case of the eventsCalendar2 component, the developer wrote the thing in such a way that the calendar, which is appearing within the container resource, takes the events from the material (resources/web pages) inside of it. A great system, in my opinion. Not only does the calendar take the listings from the contained material, the contained material serves as the detail page for the event.

    This was the main thing I am trying to understand. How to get the events to show up. That is a great way to do it! Does it matter if the container is published or not?

    3. Set up a container to hold calendar events in. That is also the page that the calendar will appear on the site.

    So I guess some of the wording at least for me is a bit confusing here to use this add-on. I have my container, and I put the events in it in the form of published documents, and I have my call for my calendar on my home page where it shows up like so:

    [[!eventsCalendar2? &first_day=`1` &dateSource=`tvevent_date` &dateFormat=`%m/%d/%Y`]]


    This I will put in a chunk once I get it working 100%. (It's a beautiful calendar btw and my hats off to the devloper). And so I get the events to show up just by dropping those documents into the container?

    4. Set up a TV called event_date. Set input type (in Input Options tab) to 'date'. Make sure the container can see it

    Got this all setup. So then I drop that tv into a new event document? I don't understand what is meant by "container can see it"

    Thanks for the help I really like this add-on a lot! [ed. note: whitesphynx last edited this post 14 years, 5 months ago.]
      MODx helps me stay in the white
      • 31902
      • 342 Posts
      ... Does it matter if the container is published or not?

      Yes, it does. The container won't appear and neither will the events inside it. However, I believe you can still go to a sub-page directly (by typing the URL in the browser address field or by way of an external link) and have that appear if it is, individually, still published. You just can't get to each sub page by way of the calendar (or menu if it is set up that way), etc.

      ...So I guess some of the wording at least for me is a bit confusing here to use this add-on. I have my container, and I put the events in it in the form of published documents, and I have my call for my calendar on my home page where it shows up like so:

      [[!eventsCalendar2? &first_day=`1` &dateSource=`tvevent_date` &dateFormat=`%m/%d/%Y`]]


      This I will put in a chunk once I get it working 100%. (It's a beautiful calendar btw and my hats off to the devloper). And so I get the events to show up just by dropping those documents into the container?

      Yes, that should be it. If you look at my implementation of the calendar on this page:

      http://67.222.24.164/~hawkresort/calendar-holiday-seasonal-events/

      ...that page that the calendar is appearing in is the container. The events are separate pages that are existing inside of that container, as viewed in the resources tree in the control panel. Please refer to my attached image of my resource tree.

      Got this all setup. So then I drop that tv into a new event document? I don't understand what is meant by "container can see it"

      My own personal strategy is to create a separate template for these event pages with the date tv assigned to be visible by it, and only it. Even if most of the page looks identical to other pages with that being the only difference. That way, I can set the date TV to be seen only when the person editing is editing one of the event pages.

      When I create the date tv, (or any tv) there is a tab at the top of the tv page labeled 'Template Access' where you set all the templates on the site whose pages are able to see that TV in the control panel.

      Having a dedicated template with that date tv assigned to it assures that other pages don't even show the date tv in the control panel, for which there would be no use for it. Yes, it means having an extra template hanging around, but it avoids confusion for the person doing the event editing.

      I have the feeling the above paragraph is confusing. Please let me know if I lost you there.
      [ed. note: waizen last edited this post 14 years, 5 months ago.]
        • 32330
        • 40 Posts
        No you're really good at explaining things and thanks for that...

        OK so I think I got most of it now. How I'm trying to implement it is as sort of a side bar widget on my Home page. So then I'd just have to make my home page the container and don't drop anything but event resources underneath it as children. That seems doable as I don't use the Home page for a parent resource for anything anyway.

        My only other question then would be what if I want the events and calendar to also show up on an inner page? I'm also trying to consider an end user with this who's abilities will be fairly limited. Maybe setup the container and children separate and iFrame them into the home page like a widget? What's your thoughts on how to accomplish that?

        I like the idea of it all being contained in MODX and I can help an end user with the template HTML/CSS, but once this is all setup and in place is it a good solution for end users as well? Or, and sorry if it's taboo to mention it here, should I be guiding him to one of the paid newsletter services out there and just leave a TV open where he can drop in the code?

        Thanks again Willi smiley
          MODx helps me stay in the white
          • 31902
          • 342 Posts
          Quote from: whitesphynx at Apr 23, 2012, 10:03 AM
          ...

          OK so I think I got most of it now. How I'm trying to implement it is as sort of a side bar widget on my Home page. So then I'd just have to make my home page the container and don't drop anything but event resources underneath it as children. That seems doable as I don't use the Home page for a parent resource for anything anyway.

          My only other question then would be what if I want the events and calendar to also show up on an inner page? I'm also trying to consider an end user with this who's abilities will be fairly limited. Maybe setup the container and children separate and iFrame them into the home page like a widget? What's your thoughts on how to accomplish that?...

          Hmmmm... well, one thing I did, also on the above named site is what appears on this page:

          http://67.222.24.164/~hawkresort/weddings-events .

          Take a look at the side bar, labeled "Coming Events". Not sure if that floats your boat but all I did was do an adaptation of Shaun McCormick's blog tutorial ( http://rtfm.modx.com/display/revolution20/Creating+a+Blog+in+MODx+Revolution ) and used it there. The exact procedure is probably beyond the scope of this little tutorial but if you reverse engineer his tutorial, you should be able to get it. His tutorial takes material (each blog entry) the same way as this calendar does (from a container), so it's a natural fit. In the case of my site above, I have it set to only show the first 5 events, so it doesn't get too long.
          [ed. note: waizen last edited this post 14 years, 5 months ago.]
            • 32330
            • 40 Posts
            Great!

            Looking forward to putting all this together and getting it working.

            Thanks again for the help smiley
              MODx helps me stay in the white
              • 31902
              • 342 Posts
              No problem.
                • 33991
                • 65 Posts
                Hello guys!

                Finally I wrote official documentation for eventsCalendar2 on rtfm http://rtfm.modx.com/display/ADDON/eventsCalendar2

                Wellcome!
                  • 31902
                  • 342 Posts
                  Please note that, on request, I created another tutorial on how I did the 'Coming Events' sidebar listing that I mentioned above. I treated it as a separate tutorial and it lives in the tutorial section of this forum.

                  You can find it here: https://forums.modx.com/thread/76412/eventscalendar2-listing-events-in-side-column-as-well-as-calendar-form#dis-post-422708

                  Please let me know if anything in that tutorial is not clear.
                    • 40902
                    • 4 Posts
                    I need some help. I keep getting the following error. I am using Revolution 2.2.4 and the lastest version of eventsCalendar with jquery 1.8.2. I have 2 events and nothing shows on the calendar.

                    Notice: Undefined variable: show_errors in C:\xampp\htdocs\pva\core\cache\includes\elements\modsnippet\19.include.cache.php on line 66

                    Notice: Undefined index: HTTP_X_REQUESTED_WITH in C:\xampp\htdocs\pva\core\cache\includes\elements\modsnippet\19.include.cache.php on line 73
                      • 33991
                      • 65 Posts
                      It is NOTICE, not ERROR.

                      Disable displaying notices in your php.ini or .htaccess.