Skip to content

Create the "Attachments" macro #82

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
snazare opened this issue Sep 9, 2022 · 0 comments
Closed

Create the "Attachments" macro #82

snazare opened this issue Sep 9, 2022 · 0 comments

Comments

@snazare
Copy link
Contributor

snazare commented Sep 9, 2022

Please create the "Attachments" macro, compatible with the Confluence Attachments macro: https://support.atlassian.com/confluence-cloud/docs/insert-the-attachments-macro/

Parameter Default Description
Filename Patterns(patterns) all A comma-separated list of regular expressions, used to filter the attachments by file name. Note that the parameter values must be regular expressions. For example:To match a file suffix of 'jpg', use .*jpg (not *.jpg).To match file names ending in 'jpg' or 'png', use .*jpg,.*png
Attachment Labels(labels) (none) A list of labels, used to filter the attachments to display. If you wish to enter more than one label, separate the labels with commas. Confluence will show only attachments that have all the labels specified. (The match is an AND, not an OR.) For information on labeling the attachments, see Use labels to organize pages and attachments.
Include Old Attachment Versions(old) false A value of true will include previous attachment versions in the list.
Sort By(sortBy) date The sort order for attachments. Note that people viewing the page can change the sort order by clicking the column headings. Valid values are:date – sorts by updated date in reverse chronological order (newest first)size – sorts largest to smallestname – sorts alphabeticallycreated date - sorts by creation date in reverse chronological order (newest first)
Sort Order(sortOrder) ascending Used in combination with the Sort By parameter, to sort the attachments in ascending or descending order.
Allow Upload(upload) true If selected, the list of attachments will include options allowing users to browse for, and attach, new files.
Page Title(page) (none) Used to display attachments from another page. If you do not enter a page title, the macro will display the files attached to the current page.
Show Previews(preview) true Used to display a preview of the attached file. If true, preview will be visible when the list item is expanded.
@snazare snazare changed the title Create the "Attachments" Bridge macro Create the "Attachments" macro Sep 9, 2022
@clemdee clemdee self-assigned this Sep 9, 2022
@snazare snazare added this to the 1.4 milestone Sep 11, 2022
@snazare snazare modified the milestones: 1.4, 1.5 Sep 11, 2022
clemdee pushed a commit that referenced this issue Sep 28, 2022
clemdee pushed a commit that referenced this issue Oct 3, 2022
clemdee pushed a commit that referenced this issue Oct 3, 2022
clemdee pushed a commit that referenced this issue Oct 4, 2022
* Disable addAttachment on edit mode
* Reload page after adding new attachment
clemdee pushed a commit that referenced this issue Oct 4, 2022
* Add `tags` xwiki-only parameter for the macro
clemdee pushed a commit that referenced this issue Oct 13, 2022
 * Remove `originalMetadataAuthor` xml tag
clemdee pushed a commit that referenced this issue Oct 13, 2022
* Replace prototypejs event handler with xwiki events bridge
clemdee pushed a commit that referenced this issue Oct 13, 2022
* Remove unnecessary quotes
clemdee pushed a commit that referenced this issue Oct 13, 2022
* Escape translations
clemdee pushed a commit that referenced this issue Oct 13, 2022
* Reorganize velocity and html macros
* Format html
clemdee pushed a commit that referenced this issue Oct 13, 2022
* Change macro parameter descriptions to plain text
clemdee pushed a commit that referenced this issue Oct 13, 2022
* Remove unused html
clemdee pushed a commit that referenced this issue Oct 13, 2022
* Rename macro id to confluence_attachments
* Capitalize name
* Add macro small description
clemdee pushed a commit that referenced this issue Oct 21, 2022
 * Add newline between the two velocity blocks
clemdee pushed a commit that referenced this issue Oct 21, 2022
 Remove `<br>` tag and use css margin instead
mflorea added a commit that referenced this issue Oct 24, 2022
@snazare snazare modified the milestones: 1.5, 1.6 Oct 26, 2022
@snazare snazare closed this as completed Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants