We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9941
    • 65 Posts
    EH... just wanted to respond on this one. The Man Can is correct... call the page in question uncached and call the jot snippet cached... works fine as long as you’re okay with page content being uncached.
      • 36451
      • 264 Posts
      Same issue here. If PHx is installed = no costum display order with JOT Placeholders. So I had to disable PHx, because I can’t ask my costumers to disable documents caches manually for every blog article :-(
        • 6726
        • 7,075 Posts
        I have been experiencing the same issue but it’s clearly stated in the Jot documentation :

        Best practise for including comments

        The best practise for comment-enabling your documents is to create a chunk for each type of Jot call you will use. Include each chunk in a template and link it to your articles. Try to avoid direct jot calls in the content field of a document (even if it’s a chunk). http://wiki.modxcms.com/index.php/Jot

        If it’s of any interrest, the way I went around the issue is have two Jot calls, one for comments and one for the form (it’s not as granular a control as placeholders but it’s enough for me...) :

                    [!Jot? &action=`comments` &subscribe=`1` &pagination=`10` &css=`0`!]
        
                     [!Jot? &action=`form` &tplForm=`FormulaireCommentaires` &css=`0` &captcha=`2` &notify=`2`!]
        


        BTW, as you can see, I call Jot uncached on a cached page and it works....
        I have PHx installed
          .: COO - Commerce Guys - Community Driven Innovation :.


          MODx est l'outil id
          • 36451
          • 264 Posts
          David, the problem occurs only if u use the &placeholders and &output params. But...

          If it’s of any interrest, the way I went around the issue is have two Jot calls, one for comments and one for the form
          ... you made my day! Man, sometimes I’m so stupid. Very nice smiley
            • 6726
            • 7,075 Posts
            Or not stupid enough wink

            I admit I am lazy - thus I always look for the least path of resistance - and it’s not the most elegant thing to do, but it works tongue
            Glad I could help...

            Anyway, I am still very interrested in explanations or fix to get placeholders to work !

            Quote from: yoomai at Mar 05, 2008, 10:03 AM
            David, the problem occurs only if u use the &placeholders and &output params.

            Yes I know I banged my head with this... my understanding is you have to set &output=`0` when you use &placeholder else you get double output so to speak...
              .: COO - Commerce Guys - Community Driven Innovation :.


              MODx est l'outil id
              • 29635
              • 361 Posts
              Quote from: yoomai at Mar 05, 2008, 07:29 AM

              So I had to disable PHx, because I can’t ask my costumers to disable documents caches manually for every blog article :-(
              You could probably switch the default for new documents to uncached if need be. That’s actually what I’d do. Slightly hacky, but a pretty easy hack.
                Need MODx Ecommerce? Try FoxyCart!
                • 10449
                • 956 Posts
                This is frustrating... I tried all possible combinations discussed here, but I can’t use Jot-placeholders. I placed the Jot-call and the placeholders directly in the template (instead of a dedicated chunk), but I don’t see ANYTHING then...

                I really need to use placeholders, since the client wants to list the comments first, and only show the form at the bottom of the page.
                  • 16610
                  • 634 Posts
                  Use parameter &action to select what to display, call Jot twice with &action=`form` &action=`comments`:

                  Control what to display:

                  • count-comments
                  • count-subscriptions
                  • comments
                  • form
                    Mikko Lammi, Owner at Maagit
                    • 37514
                    • 178 Posts
                    I’m getting a second problem using this wprk around:

                    When a comment is added, it doesn’t appear immediately, but only on a manual refresh.
                      • 12422
                      • 29 Posts
                      I can’t seem to find any parameters for controlling the templates.

                      My Jot call looks like this (inspired by previous reply):
                      [!Jot? &action=`comments` &tplForm=`kommentarTpl` &subscribe=`1` &pagination=`10` &css=`0`!]<br />
                      [!Jot? &action=`form` moderated=`0` &css=`0` &captcha=`2` &notify=`2`!]


                      But I don’t know how to design the template chunk kommentarTpl.
                      Can anyone help me in this matter?
                      I have looked in the Wiki, but it does’nt quite seem to cover this.

                      Thanks in advance!