Skip Navigation

[Resolved] Frontend output of the repeating file upload field

This support ticket is created 6 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by thisaraN 6 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#1135745
group.png

I'm trying to upload some files from the backend using the repeating file upload option

Attachment: (field group screen grab attached)

This is the shortcode used to show on the front end:

{!{types field='vehicle-documents' title='Document' class='document-button' separator='<br>'}!}{!{/types}!}

I need to know how I can use the document file name as the "Title" & add "target=_blank" to the link to open in a new tab.

ex: %title%

Something like the above example to repeat & give the uploaded file a name so that I can style it to look better on the front end. Right now it's just buttons with the same name & it doesn't make any sense.

Thanks

#1136029

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - to display the multiple instance file field with target and document file name as title you need custom shortcode.

Please check following the related ticket and adjust the code as per your need.
=> https://toolset.com/forums/topic/print-out-file-name-in-view-template/#post-34741

#1136263

Issue resolved. Cheers!