
![]() |
Show Changes |
![]() |
Edit |
![]() |
|
![]() |
Recent Changes |
![]() |
Subscriptions |
![]() |
Lost and Found |
![]() |
Find References |
![]() |
Rename |
![]() |
Administration Page |
| Search |
History
| 4/14/2006 2:14:42 PM |
| -198.97.67.57 |
| 4/14/2006 2:14:14 PM |
| -198.97.67.57 |
| 4/14/2006 2:12:32 PM |
| -198.97.67.57 |
| 4/14/2006 2:11:32 PM |
| -198.97.67.57 |
| 4/14/2006 2:10:43 PM |
| -198.97.67.57 |
![]() |
List all versions |
TODO: This is my first todo TODO: This is my second todo item within the same topic
I've tried GetListProperty, but that only works for a Single TODO with commas.
I want to be able with WikiTalk to display all the TODOs in any topic, currently I can only display the last TODO from any topic with code like:
!Topics with ""TODOs"":
@@[
"||{!}*Topic*||{!}*Summary*||{!}*Todo*||", Newline,
namespace.Topics.Select{ each |
each.HasProperty("TODO") }
.SortBy { each |
each.Name
}.Collect{ each |
[
"||{+}", each.Name,
"||{+}", each.Summary,
"||{+}", each.GetProperty("TODO"),
"||", Newline,
]
}
]
@@
I got the following code to work, but you're right - you can only have a single ToDo property entry, to get multiple values you have to separate them with commas. WFW
@@
[
namespace.Topics.Select
{
each | each.HasProperty("ToDo")}
.SortBy { s | s.Name }.Collect{
e | [
" * [", e.Name, "] - ",
e.HasProperty("Summary").IfTrue {e.GetProperty("Summary")} IfFalse {"*%red%needs a summary%%*"}, Newline,
e.GetListProperty("ToDo").Collect {
p | [" * ", p, Newline]
}
]
}
]
@@