1

what im doing wrong? Im trying load a image via Assets, in a Low Variable field.

Nothing is rendered, but Low Variables field is with "early parsing" enabled. The Lazy Load JQuery plugin is active.

{exp:low_variables:pair var="myassetsimage"}
    {exp:ce_img:pair src="{myassetsimage}" width="640" height="400" class="img-polaroid" alt=""}
          <img data-original="{made_url}" src="{site_url}layout/img/pic-blank-1.gif">
    {/exp:ce_img:pair}
{/exp:low_variables:pair} 
8
  • Is anything rendering for data-original="" in source code?
    – Anna_MediaGirl
    Sep 20 '13 at 17:07
  • No, Anna, nothing is rendered !!!
    – Criatoria
    Sep 20 '13 at 17:39
  • If you're using the tag syntax for Low Variables, having early parsing enabled or disabled is irrelevant. In fact, in this case, it's better to turn it off.
    – Low
    Sep 20 '13 at 18:13
  • The strange is: 1. CE Image is rendering data image in channels. I can see this happens in other stuff. 2. Low variables is working, in other custom fields. In the same page, i have it a code parsing matrix data and all is fine. For some reason, JUST THIS combination of code, nothing is rendering...
    – Criatoria
    Sep 20 '13 at 18:47
  • I'd say triple check everything or start with fresh code. It's probably just something not named correctly.
    – Anna_MediaGirl
    Sep 20 '13 at 18:54
3

Okay, first, turn off early parsing for the myassetsimage variable. Then try and use Asset's {url} variable (see docs) in CI Img's src-parameter instead of the Low Variables name. That means that your code would look like this:

{exp:low_variables:pair var="myassetsimage"}
  {exp:ce_img:pair src="{url}" width="640" height="400" class="img-polaroid" alt=""}
    <img data-original="{made_url}" src="{site_url}layout/img/pic-blank-1.gif">
  {/exp:ce_img:pair}
{/exp:low_variables:pair}
1
  • I just changed {made_url} by {made} and all works !!! Thank you!!!
    – Criatoria
    Sep 20 '13 at 20:31
0

Sounds like either an issue with field names not being correct or a parsing issues.

To rule out incorrect names triple check everything or start with fresh code.


To check parsing, add parse="inward" first to the {exp:low_variables:pair} tag.

If that doesn't work, remove it and add to {exp:ce_img:pair} tag.

If that doesn't work, try adding to both.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.