We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Problem with backspace and file tag in EE 3.4.2

Development and Programming

Sammi's avatar
Sammi
8 posts
8 years ago
Sammi's avatar Sammi

HI,

Is anyone else experiencing this weird problem with using backspace in a channel:entries tag?

I am using channel:entries to output a JSON list. I use backspace=”1” to get rid of a comma at the end of the list. This is something that did work prior to an update to 3.4.2.

Very simplified code:

{exp:channel:entries channel="my_channel" backspace="1"}
    "localFilename" : "{fileField}{file_name}{/fileField}",
{/exp:channel:entries}

What happens is that the backspace character correctly removes the last comma, but it ALSO removes the last character in the {file_name} field! Even if we just hardcode some text within the file field tag, that last character in that string is removed.

It is like the backspace attribute is applied to the file tag.

Best, Sammi

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.