We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25307
    • 114 Posts
    Didn’t fix. sad

    The snippet still isn’t parsing, and here is the output its returning now.. notice the language paramater getting converted to something weird.. thanks for the input...

    [[CALx? &getFolder=`4` &dayStart=`0` &inactDay=`6` 〈=`english` &useTV=`true` &dateStartTVName=`StartDate` &dateEndTVName=`EndDate` &popupType=`0` &popupSize=`300` &toolTipPosition=`CENTER` &getTypeProcess=`createCal`]]

    Couple questions to confirm proper setup and help debug..

    There are how many snippet calls required to use CALx? 2 right? One in the document to display the calendar, and the other to build and display a listing of events.

    Should a call be placed in the the container?

    Sample structure of documents in the document tree would go like this right?

    Site Root
    -----------------
    Home (1)
    Whatever (2)
    Something (3)
    Event Calendar (4)
    Events Listings (5)
    Event1 (6)
    Another Event named Anything (7)
    -----------------

    Terribly confused, please help. Thanks!
      • 13320
      • 245 Posts
      Hi,

      Can you post the message ?

      The language parameter is : &lang=`english`

      If you have always the bug, don’t put the languauge parameter, is `english` by default smiley

      I think if you have a message, that’s the parsing work smiley

      If didnt, can you try to change the & on &, like this &lang become &lang.

      CALx have two calls, but the second is created by him.

      My MODx version is 0.9.6 too smiley

      For example my CALx call :
      [[CALx? &getFolder=`2` &dayStart=`6`  &inactDay=`6` &lang=`english` &useTV=`true` &dateStartTVName=`startDateofEvent` &dateEndTVName=`endDateofEvent` &popupType=`1` &popupSize=`400` &toolTipPosition=`ABOVE` &getTypeProcess=`createCal`]]
        [b]D
        • 13331
        • 67 Posts
        I need some help installing this.. I’m all new to modx and snippets so i believe it’s a very simple mistake but i cannot find it..

        I’ve followed the installation but the calendar won’t show..

        First I’ve created a folder called CALx in ’mysitefolder\assets\snippets\’

        Then I created a new snippet called CALx with the given php-code in the first post.

        Then I created the TV’s as shown in the images from the first post

        Then I created a new document (id=5) added some text, a startdate and an enddate

        Then I edited the ’Minimal Template’ with an extra <li> in the sidebar with the folowing code:

        <ul>
        			<li id="dropmenu"><a name="dropmenu"></a><h2>Pages:</h2>
        			[[Wayfinder? &startId=`0`]]
        			</li>
        
        			<li><h2>Meta:</h2>
        				<ul>
        				    <li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
                        	<li><a href="http://jigsaw.w3.org/css-validator/check/referer" title="This page uses valid Cascading Stylesheets" rel="external">Valid <abbr title="W3C Cascading Stylesheets">css</abbr></a></li>
        				    <li><a href="http://modxcms.com/" title="Powered by MODx, Do more with less.">MOD<strong>x</strong></a></li>
        		        </ul>
        			</li>
        
        			<li><h2>Calendar:</h2>
        			[[CALx? &getFolder=`5` &dayStart=`0` &inactDay=`6` &useTV=`false` &popupType=`2` &popupSize=`300`
        &toolTipPosition=`CENTER` &getTypeProcess=`createCal`]]
        			</li>
        
        		</ul>


        But when i open a page the <li> shows with the h2 Calendar but instead of the calendar showing, the text "[[CALx? &getFolder=`5` &dayStart=`0` &inactDay=`6` &useTV=`false` &popupType=`2` &popupSize=`300`
        &toolTipPosition=`CENTER` &getTypeProcess=`createCal`]]" shows..

        What am i doing wrong?
          • 25663 MODX Staff
          • 12,272 Posts
          Did you by chance copy/paste the call from a sample page? If so, it might contain comments between the brackets or have the brackets encoded via HTML entities. If you’re looking at this through an RTE, view the source directly.

          Do you have a link to the page in question you could share?
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 13331
            • 67 Posts
            I used the manager to edit the template.. Clicked: Resources -> Manage Resources -> Templates -> Minimal Template - so no RTE used?

            I’ve double-checked for unwanted comments and there are none..

            The site is on a local webserver unfortunately..

            What do I need to write in the new document i created other than a startdate and enddate (from the TV)?
              • 25307
              • 114 Posts
              thats the same scenario as what was happening with me... rich text is disabled in page settings, and I use ’no editor’ for my default editor.
              the thing that I’m wondering most about is the red part of what is output on the page...

              &lang= in the document content is output to the page as <=.. any thoughts?

              Quote from: robot at Jul 26, 2007, 04:46 PM

              Didn’t fix. sad

              The snippet still isn’t parsing, and here is the output its returning now.. notice the language paramater getting converted to something weird.. thanks for the input...

              [[CALx? &getFolder=`4` &dayStart=`0` &inactDay=`6` 〈=`english` &useTV=`true` &dateStartTVName=`StartDate` &dateEndTVName=`EndDate` &popupType=`0` &popupSize=`300` &toolTipPosition=`CENTER` &getTypeProcess=`createCal`]]


              .
                • 13320
                • 245 Posts
                Quote from: Jachobsen at Jul 28, 2007, 08:22 AM

                I used the manager to edit the template.. Clicked: Resources -> Manage Resources -> Templates -> Minimal Template - so no RTE used?

                I’ve double-checked for unwanted comments and there are none..

                The site is on a local webserver unfortunately..

                What do I need to write in the new document i created other than a startdate and enddate (from the TV)?

                Hi,

                I’m embarassed undecided

                i copy/paste your simple template :
                [[CALx? &getFolder=`5` &dayStart=`0` &inactDay=`6` &useTV=`false` &popupType=`2` &popupSize=`300`
                &toolTipPosition=`CENTER` &getTypeProcess=`createCal`]]
                and it didn’t work grin

                But you have a little carrier-return after
                `300`

                Paste this :
                [[CALx? &getFolder=`5` &dayStart=`0` &inactDay=`6` &useTV=`false` &popupType=`2` &popupSize=`300` &toolTipPosition=`CENTER` &getTypeProcess=`createCal`]]
                If don’t work, delete the space between `300` and ’&toolTipPosition’.


                Robot,

                I copy/paste your snippet call in the same simple template and it’s work fine :’(
                Do you have test without this parameter ? (it’s english by default)
                Delete the space caracter between `EndDat`ans &popupTye, may be :/
                  [b]D
                  • 13320
                  • 245 Posts
                  Hi,

                  CALx 0.6 is ready.

                  Post the bug for correction smiley
                    [b]D
                    • 28042 ☆ A M B ☆
                    • 24,524 Posts
                    Any other source for this besides the link in the first post? I guess nobody loves me any more; I get an error page saying that I am not allowed to access that section!
                      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
                      • 14050
                      • 788 Posts
                      Well, I am not loved either. I also get the error message denying access.
                        Jesse R.
                        Consider trying something new and extraordinary.
                        Illinois Wine

                        Have you considered donating to MODx lately?
                        Donate now. Every contribution helps.