We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38878
    • 255 Posts
    Anyone seen this behavior? I have a list that does not use the modal view and an ajax calendar view that does. No matter what I call or set, the modal view uses the tplDetail chunk and not the tplDetailModal chunk. Issue is I need the css in the modal to format the iframe content properly. Maybe the use of property sets instead of explicit snippet calls is the issue?

    I am using two different custom property sets with all properties set as per the docs. However, in troubleshooting, even if the snippet is "unlocked" and the tpl call set explicitly to use the modal chunk, it still calls the non-modal chunk. Just wondering if anyone else has seen this.

    I am on Revo 2.2.4-pl and mxcalendar2 1.1.6-pl. You can see what I mean at http://www.skipngofarm.com/events. List is on the left (on every page) and ajax calendar view in main window.
    [ed. note: harveyev last edited this post 11 years, 8 months ago.]
    • Can you past you effective snippet call and the pertinent properties especially the resourceId and ajaxResourceId values along with the modalView parameter/property as well.

      Cheers
        Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
        Visit CharlesMx.com for latest news and status updates.
        • 38878
        • 255 Posts
        Sure thing. Attached is the property export which includes the ajax resourceId. The snippet call on the ajax page is:
        [[!mxcalendar@sngMXCal? tplDetailModal=`sngDetailModalTpl`]]


        Pretty simple really. I tried explicitly calling the detail modal template above and without it as it is already included in property set attached. Neither work. With the explicit seeting the call is just:

        [[!mxcalendar@sngMXCal]]
        • Is that a typo, or does your snippet call actually lack the &?

          [[!mxcalendar@sngMXCal? &tplDetailModal=`sngDetailModalTpl`]]
            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
            • 38878
            • 255 Posts
            Not sure where you mean. I am calling a property set called sngMXCal which works fine except it is not using the chunk supplied in it. Therefore, I was explicitly attempting to override the property set above to render that specific chunk to see if that worked. Also tried setting the chunk value to the ID and had the same effect.
            • I just upgraded to 1.1.6, and now the map works.

              I couldn't get the &tplDetailModal property to take in 1.1.4, nor 1.1.6. I had exactly the same issue, with a similar call. Everything else works, but the tplDetailModal property. The only chunk that affects the modal view is &tplDetail. I also tried to create a new/duplicate chunk, edited that, and specified it in the call, but it doesn't like that either.



                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
                • 38878
                • 255 Posts
                Yeah I dont think the snippet is switching the template based on the modalView property. The logic that I would assume is that is modalView property is set to true use the tplDetailModal, and use tplDetail if modalView is false. I was looking through the snippet, but nothing jumped out at me.

                Maybe Charles can take a look and give us some ideas. *nudge* *bump* *nudge*
                • In order to get the proper functionality of the tplDetailModal you will need to make sure the &resourceId=`` is set in the same snippet call in the ajax detail template.

                  Hope that helps clear that up.

                  Cheers
                    Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
                    Visit CharlesMx.com for latest news and status updates.
                    • 38878
                    • 255 Posts
                    So we need to pass a null value for resourceID when the snippet call is for a modal? Hmm..I'll try that.
                    • Nope, on the snippet that is in the ajaxresourseid resource needs the that parameter. I assume that you have a calender or list that then has the ajaxresourseid parameter set, and so then in that resources snippet call that is serving the Ajax response need the resourceId parameter set as noted. All hope that helps clarify it some more.

                      Let me know ow if not.
                        Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
                        Visit CharlesMx.com for latest news and status updates.