Good to hear from you again. I hope the filters introduced in v1.51 solved your earlier request for changing the date format.
I’m not entirely sure what you mean by “the table header caption” but I can answer your question in general terms.
If you are using a Custom Markup Template you can add any parameters you need to the shortcode and use them in your template. For example, the gallery_caption parameter you gave in your message could be added to the “Open” section of your markup template as a header before the table tags. Here is an example using the “Table-based Style and Markup Template Example” in the Settings/Media Library Assistant Documentation tab. The template would have an “Open” section that looks something like:
<h3>[+query:gallery_caption+]</h3>
<table id='[+selector+]' class='gallery galleryid-[+id+]
gallery-columns-[+columns+] gallery-size-[+size_class+]'>
As you can see, I’ve added a header line above the table and filled it from the gallery_caption parameter you added to your shortcode. You can define as many of your own parameters as you need – just give them distinct names to avoid collision with the standard parameters. The query: prefix tells MLA to look in the shortcode parameters to find the value. You could also use the request: prefix if the values were coded in the URL that got you to the page.
If I have not understood your question or you have any problems with the solution I’ve outlined please update the topic and I will give you more specific help. For now, I’ll mark this topic resolved.
Thanks for the question and for your continued interest in the plugin.
Its been about a year since we last had contact to be honest I am only now just getting back round to trying to use your mla_gallery…and seemingly to good effect – but I have yet to try the date format side of things out again yet.
I had not picked up on the “query” capability – so your suggestion was exactly what I was looking for – thanks. I now have a simple HTML table template which I use in several places to show different categories of documents in date order, but am able to specify the HTML table heading appropriate to the page I am putting it on via the shortcode.
Something I was starting to look at – but I think I mistook it for something else, was pagination. I was trying to understand whether I can have a template include previous/next pagination and when clicked the HTML table refreshes with the next/previous content and not the page as a whole (DHTML style). I don’t think this is what the pagination is doing though?
I was hoping to have a table with the most recent 12 documents and allow the user to page through the gallery within the page (like a user control in the page).
Thanks
Thanks for the update; I’m glad the query: prefix is helpful.
The MLA pagination features are modeled after the similar functions already provided by WordPress. The current implementation does not use JavaScript or DHTML, and requires a page refresh to move from one “gallery page” to another. I can see the advantage of a more “dynamic” approach, but it would be a significant amount of work to add anything like that to the plugin. I will keep it in mind for a future release, but I have a number of other things I’m working on now so I don’t know when I’ll get to it.
When you get back to the date format issue, look at the example gallery filter plugin MLA includes and this earlier support topic:
format date
The filter-based approach is much better than the “Wells Reformatting Shortcode” I sent you back in May 2013.
Thanks for your continuing interest in the plugin.