We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29597 ☆ A M B ☆
    • 350 Posts
    I just did a update of my site (from 2.1.1-pl) and now all elements generated by getResources are not visible...

    Anybody else got this?

    My call:
    [[!getResources? &resources=`[[$settings_page_id]]` &tpl=`chunk_footer_contact` &includeTVs=`1` &processTVs=`1` &tvPrefix=``]]

    It worked before the update....

    I also tried:
    [[getResources? &resources=`[[$settings_page_id]]` &tpl=`chunk_footer_contact` &includeTVs=`1` &processTVs=`1` &tvPrefix=``]]


    but no fix.
      MODX Ambassador (NL) | Responsive web design specialist, developer & speaker
      DESIGNfromWITHIN, MPThemes and Any Screen Size
      Follow me on Twitter | Read my blog | My code on GitHub
      • 4172
      • 5,888 Posts
      hmm.... don’t know if this is related. But seems there is something wrong with caching now.
      Seems all content and all snippets are cached and clear cache doesn’t work. I can clear the cache only by deleting the cache-files???
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 22303 MODX Staff
        • 10,725 Posts
        I cannot reproduce either issue.

        ThaClown: please provide the content of the chunk settings_page_id...
          • 29597 ☆ A M B ☆
          • 350 Posts
          It is just 5...
          When I enter a direct link to it id does not work eather
            MODX Ambassador (NL) | Responsive web design specialist, developer & speaker
            DESIGNfromWITHIN, MPThemes and Any Screen Size
            Follow me on Twitter | Read my blog | My code on GitHub
            • 12645
            • 9 Posts
            I think I have the same issue.

            Im using:
            [[!getResources? &parents=`6` &tpl=`newfrontList` &limit=`1` &depth=`0` &sortdir=`ASC` ]]

            Inside of tpl newfrontList I have

            [[!If?
            &subject=`[[+tv.movie-newthisweek]]`
            &operator=`EQ`
            &operand=`1`
            &then=`<img src="assets/template/pur/images/new.gif" alt="New Film This Week">`
            ]]

            [[+pagetitle]]


            Initially I thought i was the If package but when I tested it individually they both work, but if I was using the IF statement inside a chunk i called with getResources it doesn’t work.

            So my question to ThaClown is, are you using another snippet inside of your getResources template?
              • 4172
              • 5,888 Posts
              Quote from: Bruno17 at Jul 07, 2011, 02:02 PM

              hmm.... don’t know if this is related. But seems there is something wrong with caching now.
              Seems all content and all snippets are cached and clear cache doesn’t work. I can clear the cache only by deleting the cache-files???

              sorry, all seems to work again. Was my fault with a custom-snippet for switching templates.


              @ideas1:
              did try the If-snippet in a getResources-tpl. did work without issues for me.

              I think you need:
              [[!getResources? &parents=`6` &tpl=`newfrontList` &limit=`1` &depth=`0` &sortdir=`ASC` &includeTVs=`1` ]]

                -------------------------------

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!
                • 12645
                • 9 Posts
                hmm??? I wonder what I am doing wrong it was working up to 2.1.1...
                  • 4172
                  • 5,888 Posts
                  I think you miss &includeTVs=`1`
                    -------------------------------

                    you can buy me a beer, if you like MIGX

                    http://webcmsolutions.de/migx.html

                    Thanks!
                    • 29597 ☆ A M B ☆
                    • 350 Posts
                    Here is my structure:

                    The call:
                    [[!getResources? &resources=`5` &tpl=`chunk_footer_left` &includeTVs=`1` &processTVs=`1` &tvPrefix=``]]

                    The tpl chunk (chunk_footer_left):
                    [[+tv.footer_content_left]]

                    The TV called in the chunk (tv.footer_content_left):
                    input: RichText
                    output: Default

                    In the TV I simply put some HTML content.

                    ---------------

                    EDIT: Just tried a fresh install and my package (with the above getResources call) does not work either...
                      MODX Ambassador (NL) | Responsive web design specialist, developer & speaker
                      DESIGNfromWITHIN, MPThemes and Any Screen Size
                      Follow me on Twitter | Read my blog | My code on GitHub
                      • 12645
                      • 9 Posts

                      Quote from: Bruno17 at Jul 07, 2011, 03:05 PM

                      I think you miss &includeTVs=`1`

                      Nope still blank.