Hello,
I created a user macro that contains only last modified on information (Created on does not display). This is what's in the template area:
_______________________________________________________
## Macro title: Last Modified
## Macro has a body: N
## Body processing: No macro body
##
## contains last modified date only. Created date doesn't display.
## @paramlastmodified:title=Last Modified
<font style="color:#B0B0B0;"><italic>Last modifed on action.dateFormatter.formatDateTime($content.getLastModificationDate())</font>
_________________________________________________________
The macro displays like this: Last modifed on Aug 19, 2014 11:25
I'd like to add two more components:
1) Is there a way I can add am or pm, or amount of time passed (e.g. 30 minutes ago)?
2) Is there a way to add the attachments icon when images/files are added to the page?
Thanks for any help!
Rosemary
I decided to remove the time and just have the Last Modified date display.
## @param lastmodified:title=Last Modified
<font style="color:#B0B0B0;"><i>Last modifed on $action.dateFormatter.formatDateFull($content.getLastModificationDate())</i></font>
This displays as follows:
Last modifed on Tuesday, 9 September 2014
I did find a way to add the paperclip icon if attachments are present. But I can live with that.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.