We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16436
    • 7 Posts
    Nice tip, works well.

    But if no image is uploaded it shows "broken img" icon in IE

    i think snippet modification or new snippet is needed but i am not familiar with php.

    something like:
    if (file_exists("[[get_fck_thumb? &image=`[+mainimage+]`]]")) { 
    print '<a href="[*mainimage*]" rel="lightbox[`[+id+]`]"><img src="[[get_fck_thumb? &image=`[+mainimage+]`]]"></a>'
    }


    Any help appreciated
    Thanks!
      • 16436
      • 7 Posts
      Ok, nevermind, i found workaround adding onerror="this.style.display=’none’"

      <img src="[[get_fck_thumb? &image=`[+mainimage+]`]]" onerror="this.style.display='none'">
        • 7527
        • 437 Posts
        Hi,
        I have been trying this in Evo 1.0.4, and the thumbnails generate but with no pictures just a red cross. When I view source it does not appear to show the path to the image?

        I have a TV named factfile thumb, my chunk is

        <div class="grid3">  
        <h1><strong>LATEST ARTICLE</strong></h1>
            <h2><a href="[~[+id+]~]">[+pagetitle+]</a></h2>  
        <br></br>
          
            <img src="[[get_fck_thumb? &image=`[+factfilethumb+]`]]" alt="Factfile" />
        <p>[+summary+]</p>
             <p><a href="[~[+id+]~]"><strong>View page...</strong></a></p>  
        
        </div> 


        and my snippet cale on the template is:

        [[Ditto? &dateFormat=`%d - %b - %Y` &dateSource=`pub_date` &tpl=`pictures` &parents=`70,80`  &depth=`3` &display=`5`]]


        Am i doing something wrong here? Also is it possible to output 5 links that are related to the page (via tags/keywords)
        Thanks
          www.PawsForWildlife.co.uk
          www.Borntobrick.co.uk
          • 7527
          • 437 Posts
          Mine does run with just the snippet and chunk, it is only when I add the [[get_fck_thumb? &image part that it fails. My TV is set to image and no widget selected, please can anyone help on this?
            www.PawsForWildlife.co.uk
            www.Borntobrick.co.uk