We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36549
    • 572 Posts
    I'm having an issue getting the default [[+comments_form]]. So I have my multiLang Articles template as a chunk like the other multiLang templates, do I need to use different syntax?
    I've tried various ways but I'm sure this should work rather than having to start writing Quip?
      www.9thwave.co.uk
         WEB | DESIGN | PRINT
      • 4172
      • 5,888 Posts
      you need to replace this placeholder with an absolute uncached QuipReply - call

      [![!QuipReply?
      &allYourProperties
      ]]
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 36549
        • 572 Posts
        Quote from: Bruno17 at Apr 18, 2014, 04:39 AM
        you need to replace this placeholder with an absolute uncached QuipReply - call

        [![!QuipReply?
        &allYourProperties
        ]]

        Sorry Bruno, i'm not having any success here.
        So I have the following but to be honest I'm not sure what the '&thread' should refer to - is it the Articles container title?:
        [![!Quip?
        &thread=`Stories[[*id]]`
        ]]



        [![!QuipReply?
        &thread=`Stories[[*id]]`
        ]]

        I'm presuming once this initial call is working that should be it unless I want threaded comments?
        What's the simplest method of getting comments working just for testing purposes?
          www.9thwave.co.uk
             WEB | DESIGN | PRINT
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          [![! ... ]] huh
            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
            • 4172
            • 5,888 Posts
            Currently, I see not another way to cache the output for each language, but do not cache some tags, which should be uncached, because pdoTools does process all tags, cached and uncached.

            mmlCache does cache the whole generated output, which was generated by pdoResources.

            See also this one:
            https://github.com/bezumkin/pdoTools/issues/33

            Tags like [![!....]] are not processed inside pdoTools.
            mmlCache does replace them with [[!....]] and MODX can do its parsing as usual with them.

            The other way may be, not caching the mmlCache-output at all with &cache=`0` or/and do some custom partial caching for each language.
              -------------------------------

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!
              • 4172
              • 5,888 Posts
              @9thwave

              you can try to call mmlCache on that template with &cache=`0`

              Does that work?

              You can find all default Quip - snippet - tags hardcoded inside the article - class
              https://github.com/modxcms/Articles/blob/develop/core/components/articles/model/articles/article.class.php#L136
                -------------------------------

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!
                • 36549
                • 572 Posts
                Quote from: Bruno17 at Apr 21, 2014, 09:32 AM
                @9thwave

                you can try to call mmlCache on that template with &cache=`0`

                Does that work?

                Bruno thanks so much, that's got it working:-)
                  www.9thwave.co.uk
                     WEB | DESIGN | PRINT
                  • 4172
                  • 5,888 Posts
                  great!
                  For performance-optimization you can try to split the mmlCache into multiple calls.
                  Some with cache=`1` and others, like the quip-form with cache=`0`
                    -------------------------------

                    you can buy me a beer, if you like MIGX

                    http://webcmsolutions.de/migx.html

                    Thanks!
                    • 14404
                    • 84 Posts
                    Can you tell me the easiest way to do this:

                    if cultureKey = nl : "Contactgegevens"
                    if cultureKey = de : "Kontakt"

                    I'm a little new on this whole thing. think it's a small thing and i hope you can help me out with this. I just have to use this on a template a few times.

                    Thanks in advance!
                      • 4172
                      • 5,888 Posts
                      I think the easiest way is to create a MODX - lexicon-entry for contact in each language
                      and use lexicon - tags (uncached!):

                      [[!%contact]]
                        -------------------------------

                        you can buy me a beer, if you like MIGX

                        http://webcmsolutions.de/migx.html

                        Thanks!