Trac macro to show current page revision

17 views
Skip to first unread message

ilewismsl

unread,
Nov 11, 2020, 1:59:49 AM11/11/20
to Trac Users
Is there a Trac macro somewhere that I can use to show the current page revision on a wiki page?

I want something that looks like
  Test setup [[PageRevision]]

Then the page would say "Test setup 20" if the page is revision 20 and "Test setup 250" if the page revision is 250.

I want to be able to identify the revision of a set of instructions that a person used. 

Ian Lewis

RjOllos

unread,
Nov 11, 2020, 2:28:58 AM11/11/20
to Trac Users
I made something like that years ago. It's pretty simple. Let me see about adding it to:

Ryan 

RjOllos

unread,
Nov 11, 2020, 12:57:04 PM11/11/20
to Trac Users
Added to LastModifiedMacro in 17870. Example:

"The page revision is [[LatestRevision]]."

Ryan

ilewismsl

unread,
Nov 12, 2020, 8:06:10 PM11/12/20
to Trac Users
Thank you, Ryan. 

Ian Lewis
Reply all
Reply to author
Forward
0 new messages