Meddysong Posted February 12, 2019 Posted February 12, 2019 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?
opentype Posted February 12, 2019 Posted February 12, 2019 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.
Meddysong Posted February 12, 2019 Author Posted February 12, 2019 I visited your site first just in case 🙂 Didn't realise that I need the SuperDocs tab though!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.