Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Confluence 5.4.2: user macro to display author tagline

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

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

HI @TtheB

How to show the created date for the page?

$content.getCreationDate()

and formatted output:

$action.dateFormatter.formatDateFull($content.getCreationDate())

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

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.

Thanks @TtheB

Its working fine with User Macro.

TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you