We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21671
    • 244 Posts
    Hey All,

    I am using and enjoying loopDbChunk a ton. I’d like to be able to do this phx like call inside my loopDbChunk.
    
    <tr>
    <td>[*phx:if=`[+image_file_name+]`:ne=``:then=`<img src="[+image_file_name+]" alt="[+variety+]" />`:else=`<img src="assets/images/plantNA.jpg" alt="[+variety+]" />`*] </td>
    <td>[+variety+]</td>
    <td>[+height+]</td>
    <td>[+exposure+]</td>
    <td>[+color+]</td>
    <td>[+bloom_time+]</td>
    <td>[+points_of_interest+]</td>
    </tr>
    


    I know that phx doesn’t work inside loopDbChunk, but what I’m trying to do is check if there is an image_filename saved in database and to output the saved image if it is, and to output a standard placeholder image if there isn’t one saved yet in database.
    How do I do this with loopDbChunk transformation.

    All the best,

    Noah