We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33238
    • 388 Posts
    Hello & My problem!!!

    i create a TV to load a file (image) and the widget (out) is empty.

    i assigned the TV to a template that i.m using in children pages only: [*ditto-img-big*] with this TV i.m loading a different picture every page...

    i.m using a chunk to call the TV image to be shown inside a div calling with a ditto:

    chunk to call TV: <img src="[*ditto-img-big*]" width="60" height="60" border="0">

    ditto chunk &tpl=`nl_sidebar`: <div id="ditto_right_img"><a href="[~[+id+]~]" title="[+longtitle+]">{{ditto-img}}</a></div>

    ditto call: [[Ditto? &parents=`32` &display=`4` &total=`all` &randomize=`1` &tpl=`nl_sidebar`]]

    THE PROBLEM is that the ditto is showing me the seem image in all boxes...

    huh huh huh What ca i do???

    is so hard to explain this!!! tongue lol... thank you!!!

    what can i do??

    thank you!!!

    AHHH... wen i call the seem DITTO from the PARENT (32) dont show anything!!! huh huh huh HELPPP!!!! grin
      --
      ysanmiguel.com
      • 33238
      • 388 Posts
        --
        ysanmiguel.com
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        In your CSS put
        #ditto_right_img img{border:none;}

        By default, the browser will add the border to an image within link tags to indicate that it’s a link; like the default underline in text links.
          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
          • 33238
          • 388 Posts
          ok i.m not shure about this but i will try... but please check the page and you will see the problem...

          thank you so much!! see you tomorrow is late tonight!!!

          and thank you so much!!!
            --
            ysanmiguel.com
            • 7455
            • 2,204 Posts
            so what you extualy do is this:

            ditto chunk &tpl=`nl_sidebar`: <div id="ditto_right_img"><a href="[~[+id+]~]" title="[+longtitle+]"><img src="[*ditto-img-big*]" width="60" height="60" border="0"></a></div>

            do you see the problem?

            [*ditto-img-big*] wil alway’s load the image from the resource you load, I think [*ditto-img-big*] should be [+ditto-img-big+]
              follow me on twitter: @dimmy01
              • 33238
              • 388 Posts
              Dimitri man thank you so much!!!

              did i need to do everything again because i had a mess...
              but more simple...

              i delete the chunks and call everything directly from the tpl: &tpl=`nl_sidebar`

              Ex:

              <div id="ditto_right">
              <div id="ditto_right_link"><strong><a href="[~[+id+]~]" title="[+longtitle+]">[+longtitle+]</a></strong></div>
              <div id="ditto_right_text">
              <div id="ditto_right_img"><a href="[~[+id+]~]" title="[+longtitle+]"><img src="[+tv-call-img+]" width="60" height="60" border="0"></a></div>
              <p>[+description+]</p>
              </div>
              </div>
              --
              And i Use de ditto call [++]...

              Thank you so much!!! tO HELPFUL!!
                --
                ysanmiguel.com