DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Show Some Useful Page Infos

06.07.2006
| 4311 views |
  • submit to reddit
        Note: to function properly insert the right ###markers### in your template.

# INFOBOX

temp.author = TEXT	
temp.author.data = page:author

temp.author_mail = TEXT
temp.author_mail.data = page:author_email

temp.crdate = TEXT
temp.crdate.data = page:crdate
temp.crdate.strftime = %d. %b, %Y
#temp.crdate.date = d. M, Y

temp.lastUpdate = TEXT
temp.lastUpdate.data = page:SYS_LASTCHANGED
temp.lastUpdate.strftime = %d. %b, %Y
#temp.lastUpdate.date = d. M, Y

styles.content.lastUpdate = TEXT
styles.content.lastUpdate {
  data = page:SYS_LASTCHANGED
  if.isTrue.data = page:SYS_LASTCHANGED
  date >
  wrap = <span class="text_b">Last update of this page:</span> |
  strftime = %d. %b, %Y
  data = register:SYS_LASTCHANGED
  if >
}

# Set the right path to your template here:

page.10.xy.marks.lastUpdate < temp.lastUpdate
page.10.xy.marks.author < temp.author
page.10.xy.marks.author_mail < temp.author_mail
page.10.xy.marks.crdate < temp.crdate