Confluence 5.4.2: user macro to display author tagline

R Donato
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 30, 2014

I'd like to create a user macro that contains the same information as the author tagline:

Created by Jane Doe, last modified by John Doe on August 20, 2014.

I created a user macro that only displays when a page was last modified. But some of our pages need to display the author.

This is what's included in my last modified macro.

## contains last modified date only. Created date doesn't display.

## @param lastmodified:title=Last Modified
Last modifed on $action.dateFormatter.formatDateFull($content.getLastModificationDate())

I don't know how to add the author names. Can you please help?

Thanks,
Rosemary

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted
Tim
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 30, 2014
R Donato
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 15, 2014

Sorry for the delay in responding to this. Your solution works perfectly. Much appreciated.

Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 14, 2018

HI @TtheB

How to show the created date for the page?

Tim
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 14, 2018
$content.getCreationDate()

and formatted output:

$action.dateFormatter.formatDateFull($content.getCreationDate())
Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 14, 2018

HI @TtheB

Thanks for the response.

Actually, im looking to show the Created Date for the page along with Created by, last modified.

I added the above code but no luck, could you please let me know where i have been done the wrong.

Confluence_Date_format.png

Tim
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 14, 2018

This topic refers to user macros: https://confluence.atlassian.com/doc/writing-user-macros-4485.html the code will not work in the space stylesheet section or anywhere else in the space administration.

Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 15, 2018

Thanks @TtheB

Its working fine with User Macro.

TAGS
AUG Leaders

Atlassian Community Events