• Resolved Herve Kabla

    (@hkabla)


    Hi

    I have a pod filed which is a list of files.
    I’m trying to display it as a table where the first column contains the filename (only the filename, not the complete URL) ad the second column contains a button to download the file.

    The {@_src.full} works perfectly to create the button with a download link.
    But for the file name without its complete path, I’m having hard time finding the field attribute.

    BTW, is there a complete list of field attributes somewhere ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @hkabla

    I think in this case using {@post_title} would be the attachment name.
    If you want to have the actual file name you’ll have to traverse into the WordPress file metadata which is a bit more complex. The easiest way is to simply use the post title and set it to be the same as the file name.

    Cheers, Jory

    Thread Starter Herve Kabla

    (@hkabla)

    Used a piece of JavaScript to achieve it, thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display name of file for file type fields’ is closed to new replies.