{attachment-options}
Plugin: Scaffolding Plugin
Creates a set of list options linking to the attachments on the specified content the filter options.
Description
Must be contained inside a list-data macro.
Usage
Parameters
| Name |
Required |
Default |
Description |
| content | | | If specified, the page or other content the files are attached to. Defaults to the current page. |
| include | | | Only file names which match the specified regular expression will be displayed. E.g. ".*gif" for all GIF files. (Since Scaffolding 2.3-dr7) |
| exclude | | | Excludes any file names which match the specified regular expression. (Since Scaffolding 2.3-dr7) |
David - Can't get this macro to work properly - 3 bugs we hit:
Also, in the Usage section at the top of this page, should change "attachment-data" to "attachment-options".
We're using Scaffolding v2.2-dr3. Any ideas? Thanks!
Hi David,
I'll have to check your first two issues - it's been quite a while since I actually used {attachment-options}, so it's possible a bug or two may have crept in...
As for the regex, Confluence interprets a '|' to mean 'next parameter'. As in {macro:param1=value|param2=value}. I'm not sure if I actually coded around that limitation for this macro or not, but often I use a double forward-slash ('//') as a substitute. You could try that. However, I have a feeling I haven't actually implemented it here...
Could you raise the first two issues as a bug (I'm guessing they're related) and the latter also as a separate bug? Thanks.
Sure. I'll log the first 2 in jira.
For the regex, I'm sure I tried escaping the "|" with "|" or something, but no luck.
>> with "|" or something, but no luck.
...that was a "(backslash)|" by the way.
Yeah, my life would be a lot simpler if Confluence's rendering engine let you escape stuff like '|', '=' and even backslash in macro parameters. Go ahead and add the regex problem also - I'll use one of my typical workarounds...