We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36582
    • 463 Posts
    Just one more thing I can’t figure out...

    I now have the events displaying directly under the calendar in the format I want;

    Event 1
    DD/mm/yyyy
    Short Description

    When I click on Event 1 it takes me to a new page with all the event details which is great. However it also displays all the same information under the calendar? Can I disable this?

    Many thanks for your help.

      Web site design in Nottingham UK by Chris Fickling http://www.chrisficklingdesign.co.uk
      • 31290
      • 37 Posts
      In your default properties for your EasyEvents_ListMini snippet, change the following section:

      &gotoDetailsPage=Go to event page for details (1 true, 0 false);integer;0

      to this:

      &gotoDetailsPage=Go to event page for details (1 true, 0 false);integer;1

      I believe this will disable the minilist from showing the event details, clicking on the name of the event will just take you right to the event page instead of using AJAX to display it in the minilist. Hopefully this helps some grin

      -----

      And while we are on this subject...
      Is there any way to set up an additional set of Properties for this snippet to use?
        • 36582
        • 463 Posts
        Hmmm - that’s how I already have it set up - tried it the other way to just to be sure but no joy.
          Web site design in Nottingham UK by Chris Fickling http://www.chrisficklingdesign.co.uk
          • 13577
          • 302 Posts
          @VanMeter
          Thanks for helping folks out with this. I don’t get to the forums as often as I’d like.

          Quote from: VanMeter at Jul 22, 2008, 01:49 PM

          And while we are on this subject...
          Is there any way to set up an additional set of Properties for this snippet to use?
          What did you have in mind? I’m a little reluctant to go adding too much for fear that "Easy" Events will no longer be easy... but I’m willing to listen.

          @chrisandy
          Do you have a URL you can point us to? I grasp things much better when I can see them and peek at the generated code.
            Standard Disclaimer
            I could be totally wrong.
            • 3647
            • 177 Posts
            Not sure whether it is better to add to this thread or start a new one, so forgive me if wrong.

            Have installed Easy Events 1.5.3 and followed the PDF instructions (at least i thought I had).

            When try to view a page get this error

            MODx encountered the following error while attempting to parse the requested resource:
            « Execution of a query to the database failed - Access denied for user ’web176-clsa’@’%’ to database ’web176-clsa’ »
            SQL: CREATE TEMPORARY TABLE IF NOT EXISTS temp_kids (SELECT parent, count(*) AS qty FROM `web176-clsa`.`modx_clsa_site_content` GROUP BY parent)

            Looks like some kind of permissions issue, but rest of install running fine. Any idea where I start looking for a solution?
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              Creating temporary tables is a separate permission, like creating databases or creating tables. Your database user doesn’t have permission to create temporary tables.
                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
                • 3647
                • 177 Posts
                Ah, thanks Susan

                Guess I’ll have to give up with it then.

                Mark
                  • 4172
                  • 5,888 Posts
                  I had the same problem, have modified easy-events with drop table/create table instaed of create temporary table and it works fine.
                    -------------------------------

                    you can buy me a beer, if you like MIGX

                    http://webcmsolutions.de/migx.html

                    Thanks!
                    • 3647
                    • 177 Posts
                    Hi Bruno

                    That sounds great - could you elaborate (still trying to get my head round these things) or post the changed files?
                      • 4172
                      • 5,888 Posts
                      about line 970 in EasyEvents.class.php
                         function getSubParents($nodeIds=0)
                          {
                              // Get intial nodes in array format
                              $parents = $this->makeIntegerArray($nodeIds);
                      
                              $children = array();
                      
                      //changed by Bruno
                              // Make a temporary table containing a doc's ID and number of children
                              $tempSql = "DROP TABLE IF EXISTS temp_kids";
                      		$this->modx->db->query($tempSql);
                              $tempSql = "CREATE TABLE temp_kids
                        -------------------------------

                        you can buy me a beer, if you like MIGX

                        http://webcmsolutions.de/migx.html

                        Thanks!