Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted February 12, 20195 yr If you use an upload field in Pages and display the field using one of the native options, you get the result $label: $value ($value2 $value3...) I want to use a custom field with mine. I'm doing OK using: {{foreach $value as $attachment}} <span class="ipsBadge ipsBadge_style2 ipsMargin_right_tiny ipsPos_right"><a href="{file='$attachment' extension='cms_Records'}">$attachment</a></span> {{endforeach}} Unfortunately, I'm not getting the attachment name with that: $value just produces an 'Array' and $attachment->name and $attachment->title aren't producing anything. How do I get the name of the attachment, eg certificate.pdf?
February 12, 20195 yr https://www.opentype.space/superdocs/ips-community-tips/pages/original-filenames-for-pages-upload-fields-r14/ Not for attachments, but it might lead the way.
February 12, 20195 yr Author I visited your site first just in case 🙂 Didn't realise that I need the SuperDocs tab though!
Archived
This topic is now archived and is closed to further replies.