Hi,
In the comments below is my visualizer template. Everything works perfectly on the test site, and everything except the {% if imageURL !='' %} statement works perfectly on production. The content type configuration is identical.
imageURL is a new field I added because the assets field duplicates images on the server when uploaded, so I want to use the URL of the image instead, but don't want to break all the images currently being used by the assets field. If I have an image URL, I want to use that; if I don't, I want to use assets.
On production, only the first statement is being recognized. So, when configured as below, only the imageURL field is used. If I reverse the statement, only the assets field is used.
Again, it works fine on test when configured as below and all configuration on production (as far as I can tell) is the same. Any ideas what might be happening?
Thanks!
<div class="content-block-with-side-image" role="article"> <div class="{% if positionofimage contains 'Image to the left' %} rightpane {% else %} leftpane {% endif %} {% if contentAlignment contains 'Vertical Centered' %} v-center {% else %} {% endif %}" role="presentation"> <div class="content" role="presentation"> <h3 class="title {{contentSlug}}">{{title}}</h3> <div>{{body}}</div> {% if buttonLink !='' %} <a class="btn btn-primary mt-3" href="{{buttonLink}}">{{buttonText}}</a> {% endif %} </div> </div> <div class="image {% if positionofimage contains 'Image to the left' %} leftpane {% else %} rightpane {% endif %}" role="presentation"> {% if imageURL !='' %} <img src="{{imageURL}}?format=jpg&quality=80" alt="{{title}}" /> {% else %} <img src="{{assets | images_url }}?format=jpg&quality=80" alt="" /> {% endif %} </div> </div>
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.