UPDATES EasyBlog 6.0.11 Released! Update to the latest version now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
Our team is away during the weekend. Some answers may already be available on our documentation

Rest assured that we will get back to your posts as soon as the week starts!
  Support is offline

Retrieve File Custom Field URL

Tim Hunt · ·
7:37 PM Monday, 19 March 2018
Normal
Hi there

I'm adding some custom field values onto a layout override for mod_easysocial_events but I'm having trouble getting the right value back for a File field type. The usual:


$event->getFieldValue("FIELDNAME")


is just returning an array, and if I look at that array there doesn't seem to be anything like a URL, just the id and filename. Is there a specific method please for generating the download url/link for a file field?

I've had a dig around in the component but can't find anything I'm afraid. On the profile page File fields have a link to a download process rather than direct to the file itself and this is what I'd like, or just the URL itself if that's not possible.

Many thanks
Tim
The replies under this section are restricted to logged in users or users with an active subscription with us