Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Touhid 97 posts 117 karma points
    Dec 13, 2010 @ 10:16
    Touhid
    0

    image display testing within a template

    hi,

    I have three upload option for image display.

    let, first two oupoad option browse two image and third is not, then first image is displyed but third is not, it just display an image icon. so it looking not good.

    how can i it avoide it or how can i test image in a template.

    i want it using template not xslt file.

     

    Touhid

  • Rich Green 2246 posts 4008 karma points
    Dec 13, 2010 @ 10:49
    Rich Green
    0

    Hi,

    Can you post the code of your template?

    There is no reason that 2 images will work and the 3rd one wouldn't.

  • Touhid 97 posts 117 karma points
    Dec 13, 2010 @ 11:09
    Touhid
    0

    thanks for reply. sorry Rich green i want that 3rd image is if not uploaded then it can not shows the image icon. here is my template

     <li class="sliderImage">
                  <img src='<umbraco:Item field="photo1" runat="server"></umbraco:Item>' height="128" width="128" alt="Photo taken by T "/>
      </li>
       <li class="sliderImage">
                  <img src='<umbraco:Item field="photo2" runat="server"></umbraco:Item>' height="128" width="128" alt="Photo taken by T "/>
       </li>
       <li class="sliderImage">
                  <img src='<umbraco:Item field="photo3" runat="server"></umbraco:Item>' height="128" width="128" alt="Photo taken by T "/>
       </li>

    just need to check/test if any one of them image is not uploaded( by the by) then other will show and which image is not uploaded then it can not shows the image icon. this is my expectation.

     

    Touhid 

  • Rich Green 2246 posts 4008 karma points
    Dec 13, 2010 @ 11:14
    Rich Green
    0

    Hi,

    You should put this into an xslt macro.

    Do you know how to do that?

    Rich

  • Touhid 97 posts 117 karma points
    Dec 13, 2010 @ 11:29
    Touhid
    0

    Rich,

    Is there any way to solve this using template ??Because it is help for me . If not posssible then help me xslt file.

    Thnks

    Touhid

Please Sign in or register to post replies

Write your reply to:

Draft