All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Low Variables not working with img sizer and MSM

Media Surgery 22 Dec 2010 18:05 question, complete

Hi,

Been trying to get Low variables working with img sizer. Iv tried putting early parsing on but doesn't seem to make a difference.

Im using EE1.6.9 and MSM.

It should work but i'm thinking MSM is the problem?

Any ideas?

Thanks for your time.

Replies

  1. Low 22 Dec 2010 18:23

    The MSM shouldn't matter. Some questions to get a better idea:

    - What version of Low Variables are you using?
    - I'm presuming you're using a Select File variable type, correct? Early parsing should be enabled.
    - What's the template code you're using?
    - Turn on template debugging (Admin -> System Preferences -> Output and Debugging Preferences) and load the template with that code. Check 2 things:
    1: do you see the variable in the list of "Global Path.php Variables" and can you see the correct value?
    2: look up the imgsizer tag and check the value of the src parameter.

  2. Media Surgery 23 Dec 2010 09:30

    Hi, thanks for quick reply.

    {exp:imgsizer:size src="{exp:low_variables:parse var="latest-news-image"}" width="100"}
    < img src="{sized}" width="{width}" height="{height}" />
    {/exp:imgsizer:size}

    ( ^ space put in so will render here )

    Yeah i see the variable in the global list but i dont see it in the imgsizer tag.

    I'm sending you an email with debugging file.

    Thanks again.

  3. Low 23 Dec 2010 09:37

    Using an {exp:...} tag as a parameter value doesn't work in EE. You should simply treat it as a global variable and use this syntax:

    {exp:imgsizer src="{latest-news-image}" width="100"}

  4. Media Surgery 23 Dec 2010 09:42

    Thats it working. Wow! talk about customer service. Amazingly quick!

    This is my first time with low variables and will be using on pretty much every site from now, beats a misc weblog/ channel any day. Great module.

    Thanks for your help and have a great xmas and new year.

  5. Low 23 Dec 2010 09:45

    Excellent. Glad you got it working.