We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16501
    • 28 Posts
    I'm not sure where to put the tplDetailModel, modalSetWidth and modalSetHeight parameters.

    I've got them both on my list view and on the ajax resource and neither seem to take effect.

    [[!mxcalendar? &dir=`ASC` &addJQ=`false` &displayType=`list` &tplListHeading=`sj.tplListHeading` &tplListItem=`sj.tplListItem` &ajaxResourceId=`66` &modalView=`true` &tplDetailModal=`sj.tplDetailModal` &modalSetWidth`600px` &modalSetHeight=`400px`]]


    [[!mxcalendar? &displayType=`detail` &tplDetailModal=`sj.tplDetailModal` &modalSetWidth`600px` &modalSetHeight=`400px`]]


    I feel like I'm missing something really obvious.
    • There was a bug in this, where by after the initial page load the width/height properties would be lost after any ajax function, fix is coming in release 1.1.6.

      What version are you on? There are a couple patches that will help fix it as well, will post them up to github soon.
        Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
        Visit CharlesMx.com for latest news and status updates.
        • 16501
        • 28 Posts
        G'day Charles,

        Thanks for such a great snippet, I'm using 1.1.5.

        I look forward to checking out the bugfixes! smiley

        kwacky1
        • if interested you can pull down the updated files prior to the release.

          https://github.com/CharlesMx/mxCalendar/commit/fb8ee14f7691484cc30323e3286ad86d36f4329f
            Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
            Visit CharlesMx.com for latest news and status updates.
            • 16501
            • 28 Posts
            Have I done something wrong. Pulled down the updated files, uploaded them to my site, updated the snippet and now the shadowbox isn't working at all, just takes me to the resource and shows me the standard detail view.

            I tried fb8ee14f7691484cc30323e3286ad86d36f4329f and bd34a38cc95abce0b11828e5d20473d7aacb8904.

            [ed. note: kwackyone last edited this post 11 years, 8 months ago.]
            • Modal view stopped working for me too, but without the new files (have not updated manually).

                Frogabog- MODX Websites in Portland Oregon
                "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
                Having server issues? These guys have MODX Hosting perfected - SkyToaster
              • remove the "px" from the following two parameters, sorry I think this may be document incorrectly as well

                &modalSetWidth`600` &modalSetHeight=`400`
                  Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
                  Visit CharlesMx.com for latest news and status updates.
                  • 16501
                  • 28 Posts
                  I thought I tried that, will have to revisit.
                    • 16501
                    • 28 Posts
                    Yeah I definitely tried with and without px. I figured since, according to the documentation, that you can use % or px that it would need the suffix.