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

    When you view your Calendar Settings page (of the calendar you are sharing) there is a section called Calendar Address. In that section there is an ID along the lines of "[email protected]" or some such number. Have you tried using that for the email address field?


      • 13736
      • 345 Posts
      I was looking over the documentation and wondered if there is anyway to have singe events on a single page. If I have a list of events with a brief summary and then want to view the full details on a dedicated page. How would I do that?

      I was thinking it would be nice to auto generate a reminder button like they discuss here... http://www.google.com/googlecalendar/event_publisher_guide_detail.html

      I suppose the individual event reminders would be handy on a list of items too.

      There’s a feature suggestion.
        • 17058
        • 80 Posts
        @lucy:
        1:i set a couple of events in weekly mode. so there are some future events.
        2. I’ve tested the different addresses in an other modx installation. Both addresses working fine. it seems, neither gmail nor the googlemail address are the problem.
        But in this special case (server), nothing is shown except the annoying message (The feed is unavailable....). The feedlinks shown in the debugmode linking correctly to the right googlecalendar.

        @pixelstuff:
        At a first short look, i didn’t saw such a ID (which such a number). So, i added a new calendar. This new calendar provided such a long id. Set a testevent and updated the new ID in the snippet and at the document-call.
        Nothing. The same result as described above. unavailable feed message and proper linking feedlinks.

        I guess this problem depends on the security policies of the server. Any other good ideas?

        Thanks for your help. le block  
          le_block is Member of FUTY | Medienagentur aus Leipzig mit Schwerpunkt Marketing, Branding, Print und Webdesign
          • 13736
          • 345 Posts
          I’m not 100% familiar with how this snippet functions since I don’t currently have it installed anywhere, but the Google feed address has parameters you can include which tell it to display recurring events and other things.

          http://code.google.com/apis/calendar/reference.html#Parameters

          At the end of the address you generally have something like /basic or /full to indicate the amount of data in each item. But then you can also add some parameters for a query that can help narrow down your feed. The query segment is started by the question mark symbol and then an ampersand symbol is used to string multiple parameters together.

          For example you might have something like this

          .../basic?orderby=starttime&singleevents=true&start-min=2008-10-01T10:57:00-08:00&start-max=2008-12-09T10:57:00-08:00


          In that example
          orderby=starttime tells the feed to order events by when they occur rather than when they were posted. If unspecified the default is orderby=lastmodified

          singleevents=true tells the feed to expand a recurring event into multiple entries rather than only just the first in the series.

          start-min and start-max together specify a start and end date for the feed (however they can be used individually).

          There is also a futureevents=true parameter which overrides the min and max and just returns events up to 2015 or something ridiculous.


          I imagine the snippet is handling the start and end dates (start-min and start-max) in the background with a calculation based on it’s "lastEvent" parameter.  But I’m just guessing. Surely it could be modified fairly easy to include the recurring events.  I would imaging most people would prefer to include them.

          EDIT:
          In fact I just took a look at the code in v1.4.2.  Line 134 of the GoogleEvents.php file is where the address is specified and it already includes the singleevents=true parameter. So it should be displaying any recurring events (or at least the feed from Google is sending them).
            • 17058
            • 80 Posts
            @ Lucy and Pixelperfect: Thanks again for your quick responses

            As pixelperfect explained, the recurring events are well displayed.
            See the link to the testpage: http://www.fromustoyou.de/index.php?id=69&manprev=z
            Everything works fine (sorry, no styling-tpl)

            And here’s the page which make me headaches: http://www.gruenau-move.de/index.php?id=37

            i used identical snippet calls on both sites.
            as i asked before, how to insert some php-echos in the snippet to show some variables (like breakpoints)?
            i want to determine the codeblock, where the snippet stops parsing the (working) feeds. 

            le block
              le_block is Member of FUTY | Medienagentur aus Leipzig mit Schwerpunkt Marketing, Branding, Print und Webdesign
              • 9496
              • 113 Posts
              So I finally got the Calendar events works with my install (although it seems my phx is competing but different topic). I was wondering if it is possible to group events by day. Similar to the way ditto retrieves it templates. For instance:

              I have multiple events on the same day.

              Id like to output something like:

              <h1> Event Day </h1>
              event 1
              event 2
              event 3
              
              <h1>Event Day 2</h1>
              event 1
              event 2


              I understand that the TPL parses an entire event (where, when etc...)
              but can I somehow adjust it (or template it) similar to ditto?

              Im think the logic would work like this:

              get feeds

              parse appropriate information from the feeds

              sort them into groups by date


              return the date (s)
              return individual entry block

              I’m not overly familiar with creating plug-ins, and this deals really only within the list calendar type
              but I would think it could work. By adding another layer to the template similar to ditto.

              I’ll try and play around with it but maybe someone has a better and easier Idea than me whacking away at it or if someone can point me in the right direction.

              Heres kind of what Im working on to give you an idea:

              http://beta.pack3153.org

              thanks much-
              P


              Update:

              update:
              the outer template would be something like this:

              <h3>[+startDateCombined+]</h3>
              [+eventEntries+]


              and the inner template would look something like this:

              <div class="event-entry">
              <h3><span class="event-title">[+title+] <span class="toggler">[+]</span></span></h3>
              <div class="event-info">
              <p ><span class="event-notes bold">Notes:</span>[+content+]</p>
              <p><span class="event-time bold">Time:</span> [+startTime+]</p>
              <p><span class="event-location bold"> Location:</span> [+where+]</p>
              </div>



              Something like that anyway. I guess it boils down to getting the grouping logic solved...











                • 34017
                • 898 Posts
                I’ve done some work on GoogleEvents lately. I’ve changed out the calendar with another class to make it templatable.

                The calendar chunks are hardcoded right now. I’ve included a file called calendar-chunks.html to show my defaults.

                The goal is to get the calendar script to:
                - display templating for lists and the calendar
                - allow setting of template chunks for calendar.

                It’s rough but working nicely. Thought I’d share.
                  Chuck the Trukk
                  ProWebscape.com :: Nashville-WebDesign.com
                  - - - - - - - -
                  What are TV's? Here's some info below.
                  http://modxcms.com/forums/index.php/topic,21081.msg159009.html#msg1590091
                  http://modxcms.com/forums/index.php/topic,14957.msg97008.html#msg97008
                  • 25663 MODX Staff
                  • 12,272 Posts
                  Nice addition Chuck... thanks!
                    Ryan Thrash, MODX Co-Founder
                    Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                    • 9496
                    • 113 Posts
                    Chuck-
                    Thanks. How do you go about implementing it? Im not familiar enough with the plug-in itself to figure out how it fits together...

                    Ive just started playing around with google calendar so Im confused coming and going he he.

                    But integrating it within ModX, and using some ajax goodness I’ve got a pretty serviceable event listing going (beta.pack3153.org) and then I just embedded a large calendar view through google directly.

                    as far as that monthly calendar view, if we can figure out a way to get more than one event (I would think tooltip/pop up containing the listing function) then the whole thing would be crazy solid. But like I said, I’m not much more than an apprentice.

                    If there is any way I can help drop me a note, Im more of a front end / IA / communication design guy but nonetheless a relentless tinkerer...

                    Oh and another weird thing, how does google, simple pie or GE deal with line breaks in the description? I can manually add
                    tags to the google calendar description field but for some reason the broser isnt parsing them as html tags, rather they appear like
                    this in the text.
                      • 34017
                      • 898 Posts
                      my cal does show more than one event per day.
                        Chuck the Trukk
                        ProWebscape.com :: Nashville-WebDesign.com
                        - - - - - - - -
                        What are TV's? Here's some info below.
                        http://modxcms.com/forums/index.php/topic,21081.msg159009.html#msg1590091
                        http://modxcms.com/forums/index.php/topic,14957.msg97008.html#msg97008