Table of contents
No headers

The following script can be used to create a link which will begin a new page, with the title using the current date.

Combined with a wiki.tree script this can be used to create a mini forum.

      

The link looks like this:

{{ web.link(page.path.."/"..date.month(date.now).."-"..date.day(date.now).."-"..date.year(date.now).." - Replace this text with post title","New Post") }}

Which creates this:

New Post

      

Any sub-pages can be displayed in chronological order with newest first, using this:

{{ wiki.tree{path: "path to page", depth: "1", reverse: "true"} }}


Tag page
Viewing 1 of 1 comments: view all
I prefer the following:
{{ wiki.create { label: "new post", path: page.path.."/Comments", title: date.day(date.now).."-"..date.month(date.now).."-"..date.year(date.now).." - post title" } }}
{{ wiki.tree{path: page.path.."/Comments", depth: "1", reverse: "true"} }}

Can be inserted by a single template and works everywhere!
Posted 18:03, 20 Apr 2009
Viewing 1 of 1 comments: view all
You must login to post a comment.