0

I asked this question some time back and it worked, however I don't see the backspace parameter listed in the docs now, nor do I see in the change log that it was removed. I tried it anyway and it doesn't work. Is there another way to remove the last comma from a list of tags? Thanks

  • What version of Tag and EE are you using? Can you show your template code for completeness? – Solspace Oct 1 '14 at 4:22
0

backspace="" also takes newlines and extra spaces into account. So if you have

{exp:tag:tags backspace="2"}
   {tag_name}, 


{/exp:tag:tags}

...this will remove the last two linebreaks, leaving the last comma intact. Instead try removing these non-printing characters:

{exp:tag:tags backspace="2"}{tag_name}, {/exp:tag:tags}

This can happen not only with Tag, but with other add-on and native EE tags as well.

| improve this answer | |
  • Got it working using backspace and incrementally increasing the value until the comma disappeared. Thanks. – pedalGeoff Oct 1 '14 at 5:51

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.