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

Support archive

Backspace Issue

David 6 Jan 2013 21:57 problem, rejected

Hi Low, I am using Low Variables to build up a page on a client site I am working on. I am using Matrix as there are only 3 rows of data so no point having a channel.

The matrix field has 5 different data types all of which work fine. In my fourth data type (Wygwam) I need to remove the closing tag at the end to not close the paragraph. Elsewhere on the site where I am not using Matrix I am using Trimmer and pre parsing the low field without issue, this does not work here and I cannot get backspace working. Any help would really be appreciated. You will see in the code its the last variable.

http://pastie.org/5632638

Replies

  1. Low 7 Jan 2013 08:04

    Hi David,

    I'm not seeing a closing low_variables:parse tag in your code example, nor am I seeing where the backspace should be triggered. Can you elaborate a bit?

  2. David 7 Jan 2013 09:01

    Hi Low, I updated a pastie with the code here, it was just at the bottom but I hadn't included it

    http://pastie.org/5640190

    In terms of where I want the backspace, its at the end of the {lv_ot_our_team_text} tag.

    Additionally this is how I am using it elsewhere

    http://pastie.org/5640228

    This fails to work here though.

  3. Low 7 Jan 2013 09:26

    Okay, so {lv_ot_our_team_text} refers to a Matrix cell which contains template code?

  4. David 7 Jan 2013 12:01

    Thats correct its a Wygwam field and previously i used trimmer to remove the but when its in a Matrix field trimmer is not working.

    Thanks for the quick replies btw.

  5. Low 7 Jan 2013 12:12

    And what are you getting as output -- the non-truncated text or are you seeing the unparsed tags there?

  6. David 7 Jan 2013 12:17

    When I don't use trimmer I get the correct text, when I use trimmer I get nothing, just the end link which is after it.

  7. Low 7 Jan 2013 13:02

    If you turn on template debugging, can you see the {exp:trimmer} tag being called?

  8. David 7 Jan 2013 13:06

    Yes, its in use three times on the page and it shows in quite a few places, would you like access? I appreciate your help. What address should I email you on.

  9. Low 7 Jan 2013 14:17

    You can send super admin login credentials to hi at gotolow dot com.

  10. David 7 Jan 2013 14:21

    Thanks, email sent.

  11. Low 7 Jan 2013 14:39

    When I use this in the template (inside the low_variables:pair tag), I get trimmed text:

    {exp:trimmer right="50"}{lv_ot_our_team_text}{/exp:trimmer}


    Now, how much it trims, depends on the content of the Wygwam field ({lv_ot_our_team_text}). From what I can see, Low Variables is working as it should, so I guess it's just a matter of tweaking it.

    If you're looking to strip the <p>-tags from the field, I can suggest you use Low Replace instead of Trimmer:

    {exp:low_replace find="<p>|</p>" multiple="yes"} 
    {lv_ot_our_team_text}
    {/exp:low_replace}

  12. David 7 Jan 2013 14:48

    No idea how that now works for you :( i had tried that. Thanks so much for fixing. Now to get my other issue fixed.