We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10313
    • 375 Posts
    Hello,

    yes my first try was just "beginn" and "ende". As that didn’t work, I used the names that you used in your installation guide. Okay, as it is not a known problem, I’ll try on and will keep you up-to-date.

    Er, what do you mean by
    you were right, no issue with your dates.

    Does that mean, it works when you tested it?

    Greetings to France
    Martin
      • 13320
      • 245 Posts
      Yeah it works when i tested it. undecided

      Did you try to uninstall the snippet, delete the directory and re-install it ?

      Jabb
        [b]D
        • 10313
        • 375 Posts
        Okay, I got it.

        My configuration: I have a template called "events". To this template, I have attached the two TVs for startEvent and endEvent.
        I have a document (id 4) where I call the snippet to output the calendar. This document is not of template type "events". It’s a normal template. This exactly is the problem.

        Instead, I have a different document (id 13), aside from my menu, that holds all the events. Document 13 and all its childs are of template type "events".

        The CALx class uses modx methods, in particular [tt]getTemplateVar[/tt] which in turn calls [tt]getTemplateVars[/tt]. This method uses as default the current document id (in my case 4) to retrieve the available TVs. That’s why it wouldn’t find the desired TV names. After I switched document id 4 to type "events" and after I assigned values to the TVs, all worked fine.

        Then I serached for the method calls in [tt]CALx.class.php[/tt] and found them in lines 1005, 1018, 1179, 1395 and 1397. I changed the call to

        $TVenddateid = $modx->getTemplateVar($this->dateEndTVName, "", $this->getFolder)


        and similar to [tt]$TVstartdateid[/tt]. It seems to work very well now, after I switched the template type of my document id 4 back to normal.

        Greetings
        Martin
          • 10313
          • 375 Posts
          Is it a bug or is it a feature? wink

          Hey ho. I am still working on my site with the calender. I have set up a template for the event details page. This page has an automagically generated link to a page with an eform where the visitor can book/buy tickets. In that form, there is a select menu with all the events from the database, and the one the user chose before is preselected. That took me some time, but now it works.

          But now for my question regarding the bug or feature.

          I have defined an event starting on September 18, 9 p.m. This event has got NO end defined (because it just takes place on that one day). Now the calender shows this event for all days in september starting on september 19. This would mean it is a bug, because if it was a feature, the event would have to show up in october, november and so on, because there is no end defined.

          Did anyone make the same experience with that? Maybe an option like [tt]&allowSingleDayEvents[/tt] would be nice smiley

          I can look after it myself, but I want to be sure that it’s not in vain.

          Greetings from the beautiful "Bierstadt" Einbeck wink
          Martin
            • 13320
            • 245 Posts
            Heya,

            It’s bug...and not :p

            Normally, if the event has no end, it show on all the days.

            i check : 1 - to show the event on the next month (all)
            2 - to add the parameter you indicate

            I try to understand the problem with your previous post, but for the moment i don’t understand why your code don’t work in my CALx.

            Btw, i post asap a new version of CALx, without the correction of your bug :/, but with some interessenting add, i hope so.
              [b]D
              • 10313
              • 375 Posts
              Great,I’m looking forward to it already smiley

              So I think I’ll have to arrange with that feature.

              Greetings
              Martin
                • 6726
                • 7,075 Posts
                I am in the process of setting up my first calendar with CALx... I encountered a problem : the &chunkCSSName parameter is not working for me undecided

                I did as instructed :
                1) created a chunk named "css_calendrier" into which I pasted default style for CALx
                2) added &chunkCSSName=`css_calendrier` into my snippet call

                The result : no CSS is loaded sad

                My snippet call :

                [[CALx? &getFolder=`56` &chunkCSSName=`css_calendrier` &lang=`french` &dayStart=`0` &inactDay=`6` &useTV=`true` &dateStartTVName=`date_evenement` &dateEndTVName=`fin_evenement` &popupType=`1` &popupSize=`300` &toolTipPosition=`BELOW` &getTypeProcess=`createCal`]]


                In the meantime, I have hardcoded $chunkCSSName into the snippet and commented out the isset and it doesn’t work either : I check the page and the css is still from the assets folder :

                <link rel="stylesheet" type="text/css" href="/assets/snippets/CALx/style/defaut_style.css" />


                Also, I’d like the calendar CSS to be loaded *before* my main stylesheet, because of the cascade some unwanted styles are inherited sad
                Another strange thing, the js is inserted at the bottom of the page...

                <script src="/assets/snippets/CALx/js/script.js" type="text/javascript"></script>
                <script src="/assets/snippets/CALx/js/overlib.js" type="text/javascript">


                There must be something obvious I am missing or doing wrong, but can’t figure it out... huh
                Something to do with regClientCSS and/or regClientScript ?

                No one seems to have this kind of problem... frustrating I’ll re-read the whole snippet and class and try to wrap my head around this one !

                  .: COO - Commerce Guys - Community Driven Innovation :.


                  MODx est l&#39;outil id
                  • 6726
                  • 7,075 Posts
                  Anybody has the same problem I have ?

                  I am really stuck, and it’s probably stupid... or maybe an issue with PHP version ?
                  Anybody running PHP 5.2.3 with CALx ?
                    .: COO - Commerce Guys - Community Driven Innovation :.


                    MODx est l&#39;outil id
                    • 10313
                    • 375 Posts
                    Hello.

                    I don’t use that [tt]&chunkCSSName[/tt]. I let CALx use [tt]default_style.css[/tt] from the style subfolder. I just change the settings in that file as I like.

                    In my site, the [tt]default_style.css[/tt] is loaded AFTER the main stylesheets, too. If the CALx-styles overwrite your settings unintentionally, just use the [tt]!important[/tt] directive in your original stylesheets. That should work.

                    Or, even better: change the rules in CALx’s styles so that they only apply to elements in [tt]<div class="CALxContent">[/tt] that surrounds the complete CALx.

                    HTH
                    Martin
                      • 6726
                      • 7,075 Posts
                      Thanks but using !important should be avoided when possible, better to have a clean and well built cascade IMHO...

                      I wanted to avoid taking too much time tweaking the CSS, plus I’d rather use the chunk CSS uploading files to update the CSS is tiresome tongue
                      I guess that’s what I’ll end up doing anyway...
                        .: COO - Commerce Guys - Community Driven Innovation :.


                        MODx est l&#39;outil id