Jump to content

Show content of an InputfieldFile field on frontend


MilenKo
 Share

Recommended Posts

Hello all. Could someone refresh my memory or point me where to look for the parameters/options that can be used to input the content of an InputFieldFile field with some files uploaded from the admin?

I know I could do: echo $page->field_name and that would show me the file name attached (if a single file is uploaded), however, I can't really remember how to show the file description or the name that is added under the file attachment?

I've searched in google and this forum, as well as in the cheatsheet, however, am having bad luck finding the params...

Link to comment
Share on other sites

Hello @Soma

I might be too sleepy today as I was there and looking at the file->parameter and would believe I've tried with the $file->description but anyway, thanks for pushing me to the right direction it all worked like a charm and the description was the one I've needed for now.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...