I'm trying to list PDFs using asset listing. I can do the listing of file names and links to them. What are my options if the file name is not of much interest to me, but a description and nice name are desired. Say I have a file "1.pdf", and I want it to have a title "Order Form" and a description "Form for faxed orders for delivery in Sydney area".
Assume I have a folder full of documents like this. These documents are used in other places in varying contexts.
On the asset listing page, I'd like to see something like this:
Order Form
Form for faxed orders for delivery in Sydney area
1.pdf (50Kb)
…
Or do I need to submit a feature request for this?
Listing PDFs using Asset listing
You need to use a metadata schema.
- Create a schema with a field for a description (say it is called "file_description")
- Apply the schema to the folder holding the PDFs. All new assets added under here (including PDFs) will get this metadata schema applied to them.
- Enter metadata for the files
- In the asset listing, use the keyword %asset_metadata_file_description% to print the value of the file's metadata field. Change the "file_description" bit to whatever you name your metadata field.
You can do the same for all types of assets.
I realise this is 12 years old (time flies!) and maybe things have changed since then?
But the suggestion about metadata is useful only for the presentation and sorting.
In my case, I’m wanting to do A-Z listings of PDF and Word files. So there doesn’t seem to be any other option but to make sure that the file name starts with the letter you want it to appear under, am I correct?
Hi
you could use a grouping format instead, grouping by keyword:
asset_attribute_title^lowercase^maxchars:1
For a single page format - you would just need to add an uppercase modifer to the group name to get a similar result to to the AZ listing.
For a multipage style - you might be able to use some condiition together with a letter passed through a query parameter.
Thanks
Peter