Comments on Attachments macro
Last modified by Admin on 2023/12/18 00:15
Choose the export format from the list below:
Export as Portable Document Format (PDF) using the Web Browser
Export as HyperText Markup Language (HTML)
Cool macro. One idea would be to generate a livetable instead of a static table. This would allow to sort and filter all columns. It would also allow to scale if the page has a lot of attachments.
I was actually thinking of improving this macro and use livetable instead of a static table. I'm planning to add a new version of this macro pretty soon.
I am attempting to use this macro to assemble lists of attachments from several pages into a single wiki page. This would require either using several instances of the "attachments" macro, or using several "include" macros to embed the attachment from separate pages. Either way, I receive the following error on every live table after the first:
And the first live table generally shows attachments from one of the other attached pages.
I'm hoping someone has some advice on how to show attachments from multiple pages on a single page, or can simply confirm that this is not currently possible.
Try the 3.2 version of the macro, that I just uploaded. It should fix your problem.
Marius, the update seems to work great! I'm using up to 5 macros on a page, all targeting different documents with unique preferences, and don't see any error messages or issues.
Thanks a lot for the tremendously fast response.
Hi all, thanks for this great Macro. I have a quick question. Is there any way of specifying the columns that are shown in the live table? I have a lot of documents where the Author is not specified and Id prefer to be able to exclude that column as it does not provide any meaningful information. Any thoughts most appreciated!
In fact I think what I am seeing is a bug. The first attachment listed has the correct Author listed but every subsequent document in the live table has 'Unknown display mode.' in the field. Can I raise this as a formal question / bug somewhere?
https://jira.xwiki.org/browse/XWIKI-18881