• In the modal window that appears when the “Add a Pretty file list” button is clicked, there’s an option to show “Word Doc” file types, but the only file extension that’s included is .doc. It took me awhile to figure out that my Pretty file list wasn’t appearing because I had attached Word docs with the .docx extension, so it might be a good idea to add both .docx for the “Word Doc” option and .xlsx for the “Excel” option.

    Thanks for the pretty plugin!

    https://www.ads-software.com/extend/plugins/pretty-file-lister/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author smartredfox

    (@smartredfox)

    Hello Matt,

    Pretty File List actually picks up the file type from the WordPress Mime type not the file extension, and I have added mime types for docx and xslx files in already. So this should have worked.

    Can you take a look at one of the files that wasn’t working and tell me what WordPress lists as the filetype (you can see this in the media library or gallery tab on the media uploader).

    Thanks,
    James

    Thread Starter mattkoltermann

    (@mattkoltermann)

    Sure, it’s “application/msword”. When I have .docx files attached to a page and I insert a Pretty file list by checking all options, this is the shortcode that’s inserted:

    [prettyfilelist type=”pdf,xls,doc,ppt,zip” filesPerPage=”5″]

    Plugin Author smartredfox

    (@smartredfox)

    Thanks Matt.

    I think I can see what’s happening. The doc option in the filter matches for both docx and doc files as they are styled and filtered the same. Because of this docx in the shortcode isn’t recognised at all.

    I should probably add a catch so that if someone add docx into the shortcode manually the system treats it the same as doc files.

    Does this make sense?

    James

    Thread Starter mattkoltermann

    (@mattkoltermann)

    I’m not sure if I understood you correctly, but Pretty file list seemed to work fine only after I added .docx to the shortcode manually, which it didn’t before I did so.

    Just to be clear, I attached three .docx files, inserted the Pretty file list shortcode ([prettyfilelist type=”pdf,xls,doc,ppt,zip” filesPerPage=”5″]), and nothing happened. Then, I added .docx to the shortcode manually ([prettyfilelist type=”pdf,xls,doc,docx,ppt,zip” filesPerPage=”5″]) and then my three .docx files were displayed nicely.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Pretty file list] Adding .docx when "Word Doc" option is checked’ is closed to new replies.