We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30319
    • 406 Posts
    Trying this out...no maintenance on this, has the author lost initial enthusiasm for supporting this??
    Documentation lacks info on how to add events into the calendar...how is this done??
    The TVs part should be documented so one can understand how dates are added etc.
    Any event calendar worth its salt needs multiple events per day, as well as the ability to color-oode or otherwise differentiate the events.
    Thank you, Tom
      • 11316
      • 81 Posts
      How to use a date tv for the DittoCal:

      I found that the date is a real issue if you are using a custom tv date for your ditto posts.
      I did have to us phx for my regular Ditto calls on the page.

      Install DittoCal per instructions.

      Part 1:
      Setup TV [*eventDate*]
      Input Type: Date
      Widget: Unixtime

      Part 2: my ditto page that is setup for webpage viewing.

      [[Ditto? &parents=`24` &tpl=`eventsTpl` &orderBy=`eventDate ASC`]]

      the ditto &tpl for regular page views.

      <div class="event">
      <h3>[+longtitle+]</h3>
      [+eventDate:date=`%a, %b %d %Y`+]<br /> //phx on date preview
      [+eventLocation+]<br />
      [+eventPrice+]<br />
      [+startTime+] - [+endTime+]<br />
      <a href="[+eventLink+]" title=" Buy Ticket for [+longtitle+]" target="_blank"><img src="[(base_url)]assets/templates/ptc/img/buyTicket.png" width="100" height="24" alt="Buy Ticket" /></a><br />
      <a href="[~[+id+]~]" title="[+longtitle+]">More about this event</a>
      </div>


      Part 3: Create your doc id for Calendar setup.

      make sure the page is using the blank template
      Use the following as the Resource Content (notice the ditto call to a tpl (that’s the override of the date).

      {
      "title":"[*pagetitle*]",
      "link":"[(site_url)][~[*id*]~]",
      "description":"[*description*]",
      "language":"en",
      "copyright":"[(site_name)]",
      "ttl":"120",
      "entries":[
      [!Ditto? &parents=`24` &summarize=`100` &orderBy=`eventDate ASC` &tpl=`eventsCalTpl`!]
       ]
      }


      now create a chunk tpl to override the date. {{eventsCalTpl}}

      	{
      	 "title":"[+longtitle+]", // use what ever you want eg: pagetitle longtitle tv - all stuff is pretty much override at this point
      	 "link":"[(site_url)][~[+id+]~]",
      	 "date":"[+eventDate+]",
      	 "guid":"[(site_url)][~[+id+]~]",
      	 "author":"[+author+]",
      	 "description":"[+description+]",
      	 "introtext":"[+introtext+]",
      	},
      


      then post that ditto call bad boy and ready to roll.

      <div class="eventCal">[!DittoCal? &calSource=`252(the *id*)` &firstDay=`1` &dayNameLength=`2` &dateSelection=`now` &futureDate=`1`!]</div>
        • 24108
        • 1 Posts
        A simple question. I can use the calendar, but I’d like to show directly the items of the month selected, without having to click on each day.
        Does anyone knows if it’s possible or easy to do with this extra ?
        I tried to use the $ph in the call of DittoCal, but doesn’t seems to do anything ? maybe my syntax is not good :
        [!DittoCal? &calSource=`56` $ph=`[+date_actualite+]` $dateSelection=`now` &setLocal=`fr` &debug=`1`!]

        Thanks for any help, going to have a look at extra "easy events" to compare...
          • 19418
          • 17 Posts
          Hi,
          can u help me?
          DittoCal snippet hang up the server,
          "Fatal error: Maximum execution time of 60 seconds exceeded" on the page with DittoCal.
          DittoCal 1.3
          Ditto 2.1.0

          DittoCal call:

          [[DittoCal? &calSource=`23`]]
            • 20349 ☆ A M B ☆
            • 453 Posts
            I’m having problems with characters output...

            I’m using &setLocal=`hr_HR` for the language and it scrambless characters like Č,ć,Š,š

            Example:
            - Èet (should be Čet)
            - Sijeèanj 2011 (should be Siječanj 2011)


            Any ideas how to fix this?
              BASE - Web Design Studio
              MODX Ambassador

              Website
              • 20349 ☆ A M B ☆
              • 453 Posts
              Hi all!

              I implemented this calendar to be my "Calendar of choice" for MODx and it’s working fine... UNTIL i had more than 150 entries!

              Can DittoCal render 1000 or more documents without parsing a JSON error???

              What is the point of an Calendar if it can’t resolve more than thousands documents?!?
                BASE - Web Design Studio
                MODX Ambassador

                Website
                • 23015
                • 1 Posts
                Quote from: x0149128 at Jul 15, 2009, 07:02 AM

                DittoCal does not work with the ditto parameter &dateSource=`pub_date` this is a problem as I have created blog posts that I want to appear to have been created at a different time/date.

                E.g I created a blog post on 29th June, but I want it to show in the calendar as 5th June, as that is when the event took place, or when the content was originally written. How can I do this?

                Did you solve this problem?