HomePage HomePage
JW Davidson JW Davidson

RSS feed for the TestJwd namespace

Show Changes Show Changes
Edit Edit
Print Print
Recent Changes Recent Changes
Subscriptions Subscriptions
Lost and Found Lost and Found
Find References Find References
Local Search

History

9/13/2007 2:49:42 PM
-74.15.247.173
7/20/2007 11:28:07 PM
-10.10.192.236
List all versions List all versions
Topic Property Table
.

I don't like the standard way FlexWiki displays TopicProperties. It takes up too much valuable screen space. So I made a tabular version.

First, define your properties using the hidden property syntax.

:Owner:JamesRoeSmith
:Age:35
:EyeColour:Blue

Then include a call to the TopicPropertyTable WikiTalk method.

 @@TopicPropertyTable(topic,["Owner","Age","EyeColour"])@@
Property Value
Topic TopicPropertyTable
Owner JamesRoeSmith
Age 35
EyeColour Blue

The TopicPropertyTable WikiTalk method is as follows:

:TopicPropertyTable:{ thistopic, listofproperties |
		[
				"||{!}*Property*||{!}*Value*||", Newline,
				"||{!}%purple%*Topic*%%||", "[", thistopic.Name, "]", "||", Newline,
				listofproperties.Collect { thisproperty |
						[
								"||{!}*", thisproperty, "*||", thistopic.GetProperty(thisproperty), "||", Newline,
						]
				}
		]
}

Not logged in. Log in

The wiki for all things Objective Design Solutions

Recent Topics
TopicPropertyTable TopicPropertyTable
List all versions List all versions
Go to Google.com
Change Style
Powered by Flexwiki v2.0.0.218