• I love all the stat packages that can be used with this. I wish there was a little bit more “if-then” features though.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @gordon55m

    Thank you very much for the review.

    Concerning to your wishes, the current version of the plugin includes multiple alternatives to create conditional statements. Please, read the following entry in the plugin blog, it includes some explanations and examples:

    https://cff.dwbooster.com/blog/2018/09/25/misunderstood-operations/?index=1

    Best regards.

    Thread Starter Gordon55M

    (@gordon55m)

    I guess what I meant to say was I wish there was an easier (GUI) way to show images based on if/then’s. I used a work around that I think was meant for checkbox or radio options. I was hoping for a simple calculated field to display an image, or an image field that would display dynamic images based on a calculation.

    Plugin Author codepeople

    (@codepeople)

    Hello @gordon55m

    There different alternatives.

    – First alternative:

    * Insert a “HTML Content” field with the a <div> tag where display the image, as its content:

    
    <div class="image-container"></div>
    

    * And then, as part of the equation you can generate the image tag. For example (it is hypothetical):

    
    (function(){
    var result = fieldname1+fieldname2, url;
    if(result < 10) url = 'http://www.yourwebsite.com/image_a.jpg';
    else url = 'http://www.yourwebsite.com/image_b.jpg';
    jQuery('.image-container').html('<img src="'+url+'">');
    return result;
    })()
    

    – Second alternative:

    * Insert multiple “Media” controls, each of them with an image.

    * Finally, define multiple dependencies in the settings on calculated field to display the media field based on the equation’s result. More information in the following link:

    https://cff.dwbooster.com/documentation#dependencies

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Great Plugin’ is closed to new replies.