Skip to content
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

Create the "recently-updated" macro #84

Closed
snazare opened this issue Sep 11, 2022 · 1 comment
Closed

Create the "recently-updated" macro #84

snazare opened this issue Sep 11, 2022 · 1 comment
Assignees
Milestone

Comments

@snazare
Copy link

snazare commented Sep 11, 2022

Please create the "recently-updated" macro, compatible with the Confluence macro: https://confluence.atlassian.com/doc/recently-updated-macro-139519.html

Parameters priority 1:

Parameter Default Description
Author(s) by username(author) None specified. That is, display all content Filter the results by author. The macro will display only the pages etc which were last modified by the author(s) you specify here.You can specify multiple users.
Space(s)(spaces) @selfThat is, the space which contains the page on which the macro is used This parameter allows you to filter content by space. The macro will display only the pages etc which belong to the space(s) you specify here.You can specify one or more space keys, separated by a comma or a space. To exclude content in a specific space, put a minus sign (-) immediately in front of that space key. For example: If you specify a space key of -BADSPACE you will get only content that is not in the BADSPACE.To indicate that the results must come from a specific space, put a plus sign (+) immediately in front of that space key. For example: If you specify a space key of +GOODSPACE you will get only content in GOODSPACE. (Note that this is not particularly useful, because each content item belongs to one space only. If you put a plus sign next to one space key and list other space keys too, the other space keys will be ignored.)Special values:@self — The current space.@personal — All personal spaces.@global — All site spaces.@favorite — The spaces you have marked as favorite.@FAVOURITE — The same as @favorite above.@ALL — All spaces in your Confluence site.* — The same as @ALL above.When specifying a personal space, remember to use the tilde (~) sign in front of the username, such as ~jbloggs or ~jbloggs@example.com.
Label(s)(labels) None specified i.e. display all content Filter the results by label. The macro will display only the pages etc which are tagged with the label(s) you specify here.You can specify one or more label values, separated by a comma or a space.To exclude content which matches a given label, put a minus sign (-) immediately in front of that label value. For example: If you specify a label value of -badpage you will get only content which is not labeled with 'badpage'.To indicate that the results must match a given label value, put a plus sign (+) immediately in front of that label value. For example: If you specify a label value of +superpage,+goodpage you will get only content which has at least two labels, being 'superpage' and 'goodpage'.The labels parameter only applies to the page and blog content types.
Maximum Number of Results(max) 15 Specify the maximum number of results to be displayed. If this parameter is omitted, then a maximum of 15 results are displayed. The theoretical maximum value that this parameter can accept is 2 to the power of 31, minus 1 (or 2147483647), though this has been limited to 200 in the code, for performance reasons. More details are here.

Parameters priority 2:

Parameter Default Description
Width of Table(width) 100% Specify the width of the macro display, as a percentage of the window width.
Include these Content Types Only(types) All types This parameter allows you to filter content by content type. The macro will display only the content of the type you specify here.You can specify one or more types, separated by a comma or a space.To exclude content of a given content type, put a minus sign (-) immediately in front of that content type. For example: If you specify a content type of -blogpost you will get pages and all other content except for blog posts.Available values:page — Pages.blogpost or news — Blog posts, also known as news items.comment — Comments on pages and blog posts.attachment — Attachments.
theme(theme) concise Choose the appearance of this macro:concise — the default list, showing the names of pages which were updated or commented on, the users who made the page modifications and time when the modifications occurred.social — lists recent modifications in reverse chronological order, but groups them by user into short time segments. A 'sub' list appears within each user's time segment, showing the names of pages which they updated or commented on and time when these modifications occurred.sidebar — lists recent updates in reverse chronological order, showing the names of pages which were updated or commented on and time when the page modifications occurred. This theme does not show authorship.
Show User Profile Pictures(showProfilePic) false Specify showProfilePic=true to display the profile pictures of the users who updated the content.
Hide Title(hideHeading) False Determines whether the macro hides or displays the text 'Recently Updated' as a title above the list of content. Only available in wikimarkup and storage format.Accepted values:true – Title is hidden.false – Title is shown.
@snazare snazare modified the milestones: 1.4, 1.5 Sep 11, 2022
@snazare snazare changed the title Create the recently-updated macro Create the "recently-updated" macro Sep 11, 2022
@snazare snazare modified the milestones: 1.5, 1.6, 1.7 Oct 26, 2022
clemdee pushed a commit that referenced this issue Nov 21, 2022
* Almost everything has been implemented
** Missing "fetch more" button
** Needs more testing, especially on subwikis
clemdee pushed a commit that referenced this issue Nov 21, 2022
* Refactor a bit code to display results
** Escape texts when needed
clemdee pushed a commit that referenced this issue Nov 21, 2022
* Escape macro width parameter
clemdee pushed a commit that referenced this issue Nov 21, 2022
* Parametrize macros instead of using global variables
clemdee pushed a commit that referenced this issue Nov 21, 2022
* Refactor some code position and create macros to display results
clemdee pushed a commit that referenced this issue Nov 21, 2022
* Small display macro refactoring
@snazare snazare removed this from the 1.7 milestone Nov 26, 2022
clemdee pushed a commit that referenced this issue Dec 15, 2022
* Add "show more" button to fetch more results
clemdee pushed a commit that referenced this issue Dec 15, 2022
* Rename recently-updated page to be in PascalCase
clemdee pushed a commit that referenced this issue Dec 15, 2022
* Fix "show more" button
clemdee pushed a commit that referenced this issue Dec 21, 2022
* Display document name if title is empty
clemdee pushed a commit that referenced this issue Dec 21, 2022
* Use javascript API in JSX instead of velocity
clemdee pushed a commit that referenced this issue Dec 21, 2022
* Fix capitalization issue
clemdee pushed a commit that referenced this issue Dec 21, 2022
* Change macro visibility
clemdee pushed a commit that referenced this issue Dec 21, 2022
* Explicitly set `types` parameter default value
clemdee pushed a commit that referenced this issue Dec 21, 2022
* Explicitly set `types` parameter default value

This reverts commit 592c41c.
clemdee pushed a commit that referenced this issue Dec 21, 2022
clemdee pushed a commit that referenced this issue Dec 22, 2022
* Export extension from a 11.10 instance to ensure backward compability
clemdee pushed a commit that referenced this issue Dec 22, 2022
* Replace xwiki-l10n module loader with velocity for translations to support older XWiki versions
clemdee pushed a commit that referenced this issue Dec 22, 2022
* Replace String.strip with $stringtool.strip to support java 8
clemdee pushed a commit that referenced this issue Dec 22, 2022
* Change html templates in js for IE support
clemdee pushed a commit that referenced this issue Dec 22, 2022
* Make javascript code IE11 proof
clemdee pushed a commit that referenced this issue Dec 22, 2022
* Properly resolve user parameter
@snazare snazare added this to the 1.7 milestone Dec 23, 2022
@clemdee
Copy link
Contributor

clemdee commented Dec 23, 2022

Recenctly-updated macro bridge implemented.

@clemdee clemdee closed this as completed Dec 23, 2022
clemdee pushed a commit that referenced this issue Feb 2, 2023
* Escape variables where needed
clemdee pushed a commit that referenced this issue Feb 2, 2023
clemdee pushed a commit that referenced this issue Feb 2, 2023
* Fix: use silent notation to check for `$title` variable existence
clemdee pushed a commit that referenced this issue Feb 2, 2023
* Add translation keys for macro descriptor
mflorea added a commit that referenced this issue Feb 8, 2023
Create the "recently-updated" macro #84
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

2 participants