UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible 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 online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online

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