Jump to content

upload file to page with friendly name as well as description?


wilsea
 Share

Recommended Posts

Is there any way to tweak the file field or to set up a page so that if more than one file is associated with a page, a user-friendly name for each uploaded file can be added as well as a description?  If the file has some horrific and meaningless filename like rfu_o3.docx, I'd like to refer to it using a syntax something like my_file_field_name->name, where name for file rfu_o3.docx might be "Dog's breakfast".

Repeater came to mind but doesn't seem to be quite right....(I'm still fuzzy about repeaters). Maybe something to do with hooks ????

Or maybe there's a really easy way that I'm missing. 

Can anyone offer a little enlightenment?


      

Link to comment
Share on other sites

in general unless you want to build an extended file inputfield, you should use repeaters; each repeater would contain the file upload (single file deference), and any other fields you need.

while you don't get the convenience of multi drag and drop, this is the easiest plug-and-play way to have as many fields grouped with your file field as you need.

for example we have a site with audio and each audio file is in a repeater with fields like "artist", "composer", "purchase link" etc; so when we build the audio player on the front end we can also sort by artist or composer, as well as use those fields to feed to the player (without having to rely on ID3 tags)

Link to comment
Share on other sites

Love the response time of this forum. I need to spend more time digesting that link (and the associated links). 

I'm not sure that it's quite what I'm looking for. I don't want to autogenerate names, I want to be able to supply a meaningful name when I upload the file, so that later I can then display links to the file  using the meaningful name.

So far the more I test out ProcessWire the more I like it.  Different...but very nice.

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...