Site.​LocalTemplates History

Show minor edits - Show changes to output

09 February 2009 at 04:42 PM by John Rankin - forum and thread lists
Added lines 1-20:
Generate a list of threads and comments for a forum:

[@
[[#thread]]
(:if equal {<$Group}:)
||border=1 bordercolor=silver cellpadding=2 cellspacing=1 class=thread
||! '-Thread-'||!'-Author-' ||!'-Last modified-' ||!'-Comments-' ||!'-Latest comment-' ||(:if:)
|| '-[[{=$FullName} | {=$LastModifiedSummary}]]-'||'-[[~{=$LastModifiedBy}]]-' ||'-{=$LastModified}-' ||'-[[{=$Group}Comment.{=$Name}?action=browse | {{=$Group}Comment.{=$Name}$PostCountText}]]-' ||'-(:if exists {{=$Group}Comment.{=$Name} :){{=$Group}Comment.{=$Name}$LastModified}(:else:)&nbsp;(:ifend:)-' ||
[[#threadend]]
@]


Generate a list of forum pages, extracting the suffix

[@
[[#forum]]
* [[{=$FullName} | {(substr {=$Name} (strlen {$Name}-))}]]: {=$LastModifiedSummary}
[[#forumend]]
@]

PmWiki

pmwiki.org

edit SideBar

Page last modified on 12 February 2009 at 09:08 AM