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

Support archive

P&T Field Pack 2.1, Low Variables

Nick 16 Sep 2013 20:00 problem, active

Hi,

We have an issue where we're setting a low variable as the the switchee variable check. If this is a standard text input, it works fine. However, if it's a P&T Switch fieldtype, it will not trigger the appropriate case. Instead, it always hit the default case.

For example, using a simple text input (where "Test" is its value) set for early parsing (before snippets), this works fine.


{exp:switchee variable="{lv_title}" parse="inward"}
{case value='Test'}
This works and is output correctly
{/case}
{case default="Yes"}
{/case}
{/exp:switchee}


However, if I switch the variable being passed to my P&T Switch low variable field with same early parsing settings, it doesn't output the correct case.


{exp:switchee variable="{lv_switch}" parse="inward"}
{case value="y"}
With "yes" selected, this case does not trigger. I've tried setting the value of the yes option to various other values, other than "y", and none will trigger this case.
{/case}
{case default="Yes"}
Instead, this case always triggers when using the {lv_switch} variable
{/case}


We were curious if this is a parse issue, or something specific to this switch field we are just missing in relation to Low Variables?

Thanks!

EE 2.6.1
Low Variables 2.3.5
P&T Field Pack 2.1

Replies

  1. Low 17 Sep 2013 07:22

    What are the settings for that LV Switch var? Make a screenshot if you can.

  2. Nick 17 Sep 2013 13:11

    Sure, here you go.



  3. Low 17 Sep 2013 13:14

    Looks good. And what about the template debugger output? Just copy/paste the whole lot here for a page where the output isn't as expected.