We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31088
    • 14 Posts
    Hi
    Yeah, not made the switch yet, still on Evo. smiley

    I’m trying to use the technique laid out in this: http://wiki.modxcms.com/index.php/Template_Variable_Holds_an_Image

    ... to feed TVs to the attributes of my Image TV;

    Basically, using the Image widget in my Image TV, I want to have "alt text" == [*TV.alttext*]

    Am I explaining that ok? it’s kind of loop-ish, I know, but it’s a great idea. Only I can’t make it work like in the Wiki...

    Any advice would be so very much appreciated.
      • 4310
      • 2,310 Posts
      I can confirm that method doesn’t work on Evo 1.0.4.
      Why not forget the widget and use :
      <img src="[*image*]" width="500" height="500" alt="[*alt-text*]" />
        • 31088
        • 14 Posts
        ah, ok thanx. too bad.

        Unfortunately the ’image’ type TV outputs the full image tag; I’d have to use something else. Maybe file... I’ll give it a shot.
          • 4310
          • 2,310 Posts
          Setting a TV to Input Type = Image only saves the path.
          Setting the Widget = Image outputs the whole <img src="" ... />
          If you reset the Widget to blank, that should work.
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Just [*alt-text*] in the widget’s Alternate Text field works fine; no need for the TV prefix any more. cool
              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
              • 4310
              • 2,310 Posts
              That doesn’t work for me on an Evo 1.0.4 site, but just has on an Evo 1.0.2 site huh
              Wonder if something got changed between versions.
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                Works on 1.0.5; I tested it before posting.
                  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
                  • 31088
                  • 14 Posts
                  Quote from: bunk58 at Jan 20, 2011, 01:11 PM

                  Setting a TV to Input Type = Image only saves the path.
                  Setting the Widget = Image outputs the whole <img src="" ... />
                  If you reset the Widget to blank, that should work.
                  oh, grin that’s def. a help.
                  Yeah, the widget isn’t necessary. I’d like it, but it’s no biggie.

                  I’ll have to try 1.0.5.

                  Thanks very much for all the replies.

                  @sottwell: yeah, the "TV" is just my obsessive attempts to keep everything organized. Never works, but I keep trying smiley