We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19132
    • 199 Posts
    Image TV isn’t working for me either. I’ve done this many times on many Evo sites. No problem.

    magic_quotes_gpc is off.

    The only thing I can think of is that getResources doesn’t like the TV?
    [[!getResources?
    &parents=`15`
    &limit=`1`
    &tpl=`HomePgBlogPost`
    &includeTVs=`1`  
    &includeContent=`1` 
    ]]


    The TPL has the TV as:
    <img src="[[*blog-image]]" alt="[[+longtitle]] />


    It outputs the alt but not the image.
    Wondering if Revo is not properly executing its syntax? Kinda over my head.

    All I know is that the Image TVs are not working. I’m looking into getResources to see if I find a solution there but....
      MySQL: 5.0.45
      PHP: 5.2.6
      Linux 2.6.9-023stab048.6-enterprise #1
      cURL enabled
      PDO enabled
      FFox Apple 3.6.8
      Firebug DIS-abled
      • 33337
      • 3,975 Posts
      You have to prefix "tv." eg. [[+tv.blog-image]]
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
        • 28215
        • 4,149 Posts
        Yes, you’ll need a tv. prefix there, or in your getResources call, add this: &tvPrefix=``
          shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
          • 19132
          • 199 Posts
          Thanks for the tip. Since the default tvPrefix in getResources is already "tv." adding "tv." to my TPL should do the trick.
            MySQL: 5.0.45
            PHP: 5.2.6
            Linux 2.6.9-023stab048.6-enterprise #1
            cURL enabled
            PDO enabled
            FFox Apple 3.6.8
            Firebug DIS-abled
            • 22840
            • 1,572 Posts
            Quote from: splittingred at Jul 28, 2010, 11:56 AM

            Yes, you’ll need a tv. prefix there, or in your getResources call, add this: &tvPrefix=``

            Will Do Shaun, I’m away after tonight till the 8th so won’t have time till I return but will try it then.

            Cheers
              • 19132
              • 199 Posts
              Thanks for the TVPrefix tip.

              [[+tv.blog-image]]


              It should be noted that my original TV syntax came from
              http://svn.modxcms.com/docs/display/revolution/Tag+Syntax
              [[*templatevar]]


              so I marked it up like this:
              [[*tv.blog-image]]


              That didn’t work. It might be worthwhile to note that Custom TVs - and this is what it is, right? - need the plus character and prefix in order to work.

              Now onto figure out why the File Browser doesn’t let me upload images from within the Resource editor. It does when I use it via the Files tab.

              But when I try to upload an image via the TV tab while creating a new blog post, it says
              The webserver doesn’t have the necessary permissions to upload to the directory

              Not sure if this is an Apache issue, or JSON or what it is. All I know is that I can upload to any 777 directory via the Files tab browser, but not within the Resource Editor.
                MySQL: 5.0.45
                PHP: 5.2.6
                Linux 2.6.9-023stab048.6-enterprise #1
                cURL enabled
                PDO enabled
                FFox Apple 3.6.8
                Firebug DIS-abled
                • 8869
                • 32 Posts
                I’m having the exact same problem too - when I create a TV for images it is just showing the TV name on each resource page but no control for actually selecting the image to use. Issue occurs in both IE and firefox even after clearing site cache, browser cache and all cookies.
                  • 2372
                  • 14 Posts
                  I have tested it with Revo pl 7210 and 7212 on different hosting servers. File and Image tv-fields are not shown. At the same time disappear category tabs of elements.
                    • 19132
                    • 199 Posts
                    Quote from: en8scl at Jul 29, 2010, 01:24 AM

                    I’m having the exact same problem too - when I create a TV for images it is just showing the TV name on each resource page but no control for actually selecting the image to use. Issue occurs in both IE and firefox even after clearing site cache, browser cache and all cookies.

                    Did you click on the ultra tiny black arrow for your TV?
                      MySQL: 5.0.45
                      PHP: 5.2.6
                      Linux 2.6.9-023stab048.6-enterprise #1
                      cURL enabled
                      PDO enabled
                      FFox Apple 3.6.8
                      Firebug DIS-abled
                      • 28215
                      • 4,149 Posts
                      Quote from: en8scl at Jul 29, 2010, 01:24 AM

                      I’m having the exact same problem too - when I create a TV for images it is just showing the TV name on each resource page but no control for actually selecting the image to use. Issue occurs in both IE and firefox even after clearing site cache, browser cache and all cookies.

                      Please state:

                      - MySQL/PHP version
                      - Server version
                      - Browser and OS
                      - Advanced or Normal Revo distribution
                      - The exact steps you took to create the TV
                        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com