• I would like to display a table of files within a folder, together with their creation date.
    The basic mmfilelist plugin works fine and I can remove the filesize and order by date. However, when I try the custom format using:
    [MMFileList folder=”/music/” format=”li”]<div class=”taco”>{name} ({date})</div>[/MMFileList]
    I get the filename and date, but as a list, and the surrounding html code is also displayed in the front end page. I also do not want the url displayed.
    Any help appreciated, as I’m not a coder by any means.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter mpeill

    (@mpeill)

    I’ve since got this to work:
    [MMFileList folder=music format=”table” orderby=date]{name} ({date})[/MMFileList]

    and that’s a step forward, but it’s just a text list. I would like the titles to be clickable as a download link. Any ideas?

    Dear friend, could you solve the problem? What can I do to see a list of files in table format, and the “date” field appear?
    I appreciate if you can give me a hand, I’m not a coder.

    Thread Starter mpeill

    (@mpeill)

    No I haven’t found a way to display filename and date in a table format.
    I really do hope the creator of the plugin can help, because it’s a great plugin.

    @mpeill

    I was looking through the code and it doesn’t appear that the date function is completely implemented in tables. I am working to see how that can be implemented and will send some suggestions to the plugin creator.

    I have this code that should work for you. However, it does not change the titles of the table since that is hardcoded into the $headers variable of the PHP file. I’m seeing if there is a way to change that without editing the PHP. One way is to adjust the CSS on the page but that could be a little complicated if you aren’t super familiar with coding.

    [MMFileList folder=music format="table" orderby=date]<td><a href="{url}">{name}</a></td><td>({date})</td>[/MMFileList]

    Make sure to put this in the shortcode block if you are using the new Gutenberg WordPress layout. If you don’t, it won’t work properly.

    Thread Starter mpeill

    (@mpeill)

    Thanks for responding.
    Strange (but bear in mind I’m not a coder as such, just dabbling).
    As a test, I have a web page that includes:

    [MMFileList folder=music format=”table” orderby=date]<td>{name}</td><td>({date})</td>[/MMFileList]

    [MMFileList folder=music format=table orderby=name prettyname=on removesize=on/]

    The first call to MMFileList just produces a large text, copied here just the first few lines:

    <td>index.html</td><td>(2020-05-19 14:06:37)</td><td>C42-Flower-Of-Portencross-(A,-D).pdf</td><td>(2020-02-06 18:21:28)</td><td>A47-Ob-la-di.pdf</td><td>(2020-01-23 09:18:37)</td><td>A46-This-is-my-Island.pdf</td><td>(2020-01-23 09:14:37)</td><td>A45-I’d-Like-To-Teach-The-World-To-Sing.pdf</td><td>(2020-01-22 08:41:47)</td><td><a href=”https://localhost/wordpress/wp-…………&#8230;. etc

    Yet the second call to MMFileList produces a table with the cells populated as below, exactly what I want but missing the date field:

    Score
    01 Pat A Cake Polka
    02 Oxo Reel
    03 Virginia Reel
    04 Gay Gordons
    04b Gay Gordons
    05 Lucky Seven

    Am I missing something simple?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘display filename and date created, in table’ is closed to new replies.