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

Support archive

No Output with variable

Sean 6 May 2013 16:49 problem, rejected

Hi Low,

EE 2.5.5
LV 2.3.4

I've got two text variables both with Early Parsing = no and hidden="yes" The first variable is output just fine, however the second variable will not output when using the exp:low_variables tag - If I write it like {lv-member-contact} it works fine, but I need to use preparse in this case. I've tried using both :single and :parse with no change.

Code

 

{exp:low_variables:single var="lv-doctype-header"}

.... more code here

{exp:low_variables:single var="lv-member-contact"
preparse:mbr-id="{segment_3}"
}



please advise.

Replies

  1. Low 6 May 2013 16:52

    Hey Sean,

    Is the variable where it doesn't work a Textarea var? The preparse:-param is only available in the Textarea vars.

  2. Sean 6 May 2013 17:35

    Low yes it is a textarea

  3. Low 6 May 2013 18:19

    Can you enable template debugging and copy/paste all lines that mention LV here?

  4. Sean 6 May 2013 19:26

    Low,

    here it is. Everywhere there's a blank space there's a bunch of unrelated lines which I deleted.


    TEMPLATE DEBUGGING

    (0.029747 / 10.04MB) Parsing Tags in Template
    (0.029777 / 10.04MB) Tag: {exp:low_variables:single var="lv-doctype-header"}
    (0.029846 / 10.05MB) No Closing Tag
    (0.029918 / 10.05MB) Tag: {exp:low_variables:single var="lv-header"}
    (0.030040 / 10.05MB) No Closing Tag
    (0.030088 / 10.05MB) Tag: {exp:low_variables:single var="lv-contact-copy"}
    (0.030144 / 10.05MB) No Closing Tag
    (0.030193 / 10.06MB) Tag: {exp:low_variables:parse var="lv-member-contact" preparse:mbr-id="7" }
    (0.030258 / 10.06MB) No Closing Tag
    (0.030307 / 10.06MB) Tag: {exp:low_variables:single var="lv-sidebar"}
    (0.030362 / 10.06MB) No Closing Tag

    (0.030561 / 10.07MB) Module Tag: Low_variables/single
    (0.030586 / 10.07MB) Module Tag: Low_variables/single
    (0.030608 / 10.07MB) Module Tag: Low_variables/single
    (0.030629 / 10.07MB) Module Tag: Low_variables/parse
    (0.030650 / 10.07MB) Module Tag: Low_variables/single

    (0.049259 / 12.56MB) Calling Class/Method: Low_variables/single
    (0.049379 / 12.56MB) -> Class Called: Low_variables
    (0.049472 / 12.57MB) -> Method Called: single
    (0.049517 / 12.57MB) Low Variables: Getting variables from Database
    (0.080433 / 15.05MB) Low Variables: Calling Low_textarea::display_output()
    (0.080545 / 15.05MB) -> Data Returned
    (0.080631 / 15.04MB) Calling Class/Method: Low_variables/single
    (0.080744 / 15.04MB) -> Class Called: Low_variables
    (0.080818 / 15.05MB) -> Method Called: single
    (0.080861 / 15.05MB) Low Variables: Getting variables from Session Cache
    (0.080939 / 15.05MB) Low Variables: Calling Low_textarea::display_output()
    (0.081022 / 15.05MB) -> Data Returned
    (0.081059 / 15.05MB) Calling Class/Method: Low_variables/single
    (0.081144 / 15.05MB) -> Class Called: Low_variables
    (0.081209 / 15.05MB) -> Method Called: single
    (0.081245 / 15.05MB) Low Variables: Getting variables from Session Cache
    (0.081287 / 15.05MB) Low Variables: Calling Low_fieldtype_bridge::display_output()
    (0.097253 / 15.62MB) -> Data Returned
    (0.097301 / 15.62MB) Calling Class/Method: Low_variables/parse
    (0.097401 / 15.62MB) -> Class Called: Low_variables
    (0.097470 / 15.62MB) -> Method Called: parse
    (0.097511 / 15.62MB) Low Variables: Getting variables from Session Cache
    (0.097582 / 15.63MB) Low Variables: Calling Low_textarea::display_output()
    (0.097608 / 15.63MB) Low Variables: Low_textarea preparse keys: mbr-id
    (0.097626 / 15.63MB) Low Variables: Low_textarea preparse values: 7
    (0.097795 / 15.63MB) -> Data Returned
    (0.097834 / 15.62MB) Calling Class/Method: Low_variables/single
    (0.097982 / 15.62MB) -> Class Called: Low_variables
    (0.098049 / 15.63MB) -> Method Called: single
    (0.098085 / 15.63MB) Low Variables: Getting variables from Session Cache
    (0.098149 / 15.63MB) Low Variables: Calling Low_textarea::display_output()
    (0.098230 / 15.63MB) -> Data Returned

    (0.146252 / 18.76MB) Tag: {exp:low_variables:single var="lv-slogan"}
    (0.146320 / 18.76MB) No Closing Tag
    (0.146769 / 18.78MB) Module Tag: Low_variables/single

    (0.160486 / 20.55MB) Calling Class/Method: Low_variables/single
    (0.160603 / 20.55MB) -> Class Called: Low_variables
    (0.160681 / 20.55MB) -> Method Called: single
    (0.160726 / 20.55MB) Low Variables: Getting variables from Session Cache
    (0.160805 / 20.55MB) Low Variables: Calling Low_textarea::display_output()
    (0.160905 / 20.55MB) -> Data Returned

    Memory Usage: 22,637,704 bytes

  5. Low 7 May 2013 07:11

    Okay, so the lv-member-contact var is not working properly? What is in the var and what did you expect to get back?

  6. Sean 7 May 2013 14:17

    Low,

    It contains a freeform form and I'm expecting it to output the form, which it does if I don't use the exp:low_variables:single tag. I've currently copied a working form from a different page and am going to modify this form to work with segment_3 passed through as a preparse as soon as I can get the form to appear on the page.

     
    <pre><code>
    {exp:freeform:form
    form_name="consultant-contact"
    status="open"
    form:id="contact"
    return="contact/thank-you"
    required="name|email|company"
    notify_admin="yes"
    admin_notify="******@domain.com"
    admin_notification_template="contact"
    }

    <fieldset>
    some fields here
    </fieldset>

    <fieldset>
    <legend>Other Information</legend>

    some fields here

    </fieldset>

    <input type="submit" value="Submit" class="button medium radius submit" />

    {/exp:freeform:form}

  7. Low 7 May 2013 14:32

    Any chance for me to take a look myself? SuperAdmin login credentials can be sent to hi at gotolow dot com.

  8. Sean 7 May 2013 15:29

    Low, have sent you an email.