We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32678
    • 290 Posts
    Any idea why
    [[#26.tv.panelFile]]
    will not work while
    [[getResourceField? &id=`26` &field=`panelFile` &processTV=`1`]]
    does?

    I should note that fastfield pulls loads resource fields in the same template just fine.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      What, exactly, is panelFile supposed to output? What will it do if you have [[*panelFile]] on resource #26?
        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
        • 32678
        • 290 Posts
        Quote from: sottwell at Jul 13, 2015, 03:03 AM
        What, exactly, is panelFile supposed to output? What will it do if you have [[*panelFile]] on resource #26?
        Yes, that's probably pertinent. ;( It's an image tv, and outputs as expected when placed on resource #26.
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Have you tried it without an output option, just returning the image path, and added the img tags manually?
            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
            • 3749
            • 24,544 Posts
            My guess is that FastField doesn't process the TV and/or get the default value when it's set to the TV's default value. I could be wrong.

            Doing a "View Source" on it should tell you what FastField is returning, since image tags aren't shown.
              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting
              • 32678
              • 290 Posts
              Quote from: BobRay at Jul 13, 2015, 10:41 PM
              My guess is that FastField doesn't process the TV and/or get the default value when it's set to the TV's default value. I could be wrong.

              Doing a "View Source" on it should tell you what FastField is returning, since image tags aren't shown.

              I'm stumped. I changed the tv output value to image and same result. I've tried it with separate image TVs associated to the same resource with no output.
                • 32678
                • 290 Posts
                Quote from: sottwell at Jul 13, 2015, 03:23 AM
                Have you tried it without an output option, just returning the image path, and added the img tags manually?
                Yes, that's how I have it set up. I tried using an image output, as well, but still no result.
                  • 3749
                  • 24,544 Posts

                  Try changing the TV type to text.
                    Did I help you? Buy me a beer
                    Get my Book: MODX:The Official Guide
                    MODX info for everyone: http://bobsguides.com/modx.html
                    My MODX Extras
                    Bob's Guides is now hosted at A2 MODX Hosting
                    • 32678
                    • 290 Posts
                    Quote from: BobRay at Jul 16, 2015, 11:04 PM

                    Try changing the TV type to text.
                    I can guess what you're going to say...

                    This was driving me nuts, so I created two test image TVs, one with processed output, the other set as default, and placed both into a test template. Both the processed and unprocessed TVs rendered using Fastfield's syntax for processed TVs (i.e. #myID.tv.myTV).

                    I placed the FF calls into the template where the issue originally presented and the TVs render as expected. I changed nothing else and swear by everything holy and unholy that there wasn't an error in my code.

                      • 3749
                      • 24,544 Posts
                      Gremlins? wink
                        Did I help you? Buy me a beer
                        Get my Book: MODX:The Official Guide
                        MODX info for everyone: http://bobsguides.com/modx.html
                        My MODX Extras
                        Bob's Guides is now hosted at A2 MODX Hosting