Publisher does not support the Fluid field type. Please do not contact asking when support will be available.
If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.
Ticket: short template tag for a file field has stopped working (outputs a blank path)?
Status | Resolved |
Add-on / Version | Bloqs 5.0.10 |
Severity | |
EE Version | 7.3.8 |
Rick Harrison
Jul 28, 2023Hello
We have a bloq that has a ‘file’ field type in it called ‘icon’, we’ve just upgraded to the latest EE and bloqs and noticed the icon images now weren’t appearing on the website front end. In the template we had :
{bloq_name}
<img src="{icon}" ... />
{/bloq_name}
the file field short-tag ( {icon} ) has seemingly started outputting empty string for the file path (was working okay in the previous version we had installed of Bloqs/5.0.6 and EE/7.2.10)
We’ve worked around it by substituting to {icon}{url}{/icon} for now instead
Kind regards,
Rick.
BoldMinded (Brian)
Jul 28, 2023
Take a look at this thread: https://boldminded.com/support/ticket/2702
BoldMinded (Brian)
Jul 28, 2023
I also updated the docs with examples https://docs.boldminded.com/bloqs/docs/template-tags
Rick Harrison
Jul 28, 2023
@Brian
Fair enough if it’s EE causing it - cheers for replying so quickly!
I might raise a new bug report with ExpressionEngine for it given they closed yours saying they couldn’t replicate it - we mostly use the file tag pair, but obviously we’ll need to do a full audit of all the templates for all our client websites to make doubly sure theres no stray single-tag uses, unless EE fix it (given the EE docs still give the example of short-tags)
Cheers!
Rick.
Rick Harrison
Jul 28, 2023
Actually, i’ve just tried adding a test file field to a channel (outside of bloqs) and referenced it in a template, and it seems to work okay via that route, so it only appears to be failing within a bloq for me?
Ie i just added this to the homepage template and added a “test_file” field to the homepage channel, and outputted the image url correctly?
BoldMinded (Brian)
Jul 28, 2023
You’ll want to compare Bloqs to Grid, not a standalone File field in a channel.
BoldMinded (Brian)
Jul 28, 2023
I actually just tested this again locally and it appears to be working fine now. Bloqs 5.0.10 and EE 7.3.8.
Rick Harrison
Jul 28, 2023
Ah okay, if i get a little time over the weekend i’ll try comparing a grid field to see if there’s a difference (if not, on monday) .
I’m also running ee7.3.8 with bloqs5.0.10 confusingly.
I tried a simplified template of :
and still got blank for the single-tag version and the path for the tag pair 😕
Leave with me and i’ll try a fresh EE site install when i get chance and see if i can narrow it down or make it replicable.