Virtual Data
VirtualData means that certain parts of ProWiki page content can be used as data. This data can be displayed individually or in lists. VirtualData is supported by VidaCaching which makes it so efficient that we can consider it "zero-cost" ("vida" is ProWiki slang for "virtual data").
Example assigments (used below):
- data=3.456
- test: this is an another example of VirtualData # a comment to be ignored
- MAIL name(AT)somedomain.tdl
This is in real use (see below and in FolderVirtualData):
- info: the general concept to have page content act as data
Note that the Context pages hold and use similar data for configuration purposes. But Context pages are excludes from normal VirtualData search and the syntax is slightly different (no comments, only "=" operator) for consistency and even more efficiency.
Format rules for VirtualData:
- exists in bulleted lists
- assigments may be written "variable=value" or "variable:value"
- a comment after a leading "#" character is removed
- whitespace may be used deliberately and is removed
[[display][variable=vida.data]] results in:
| Variable vida.data: |
3.456 |
|
|
(the variable declared above; works on same page only)
| Variable vida.test: |
this is an another example of VirtualData |
|
|
Simplified Syntax for List (more about CdmlList see next section)
[[Vida]data] results in:
Both commands:
[[list][type=*][vida=yes][variables=mailto:,data]]
[[list]mailto:,data]
will produce:
Access virtual data using the command line
You write "VirtualData##info" to get:
VirtualDatainfo: the general concept to have page content act as data
If you define a default "talking page variable name":
| Variable PageAutoTalk: |
info |
|
|
This can even abbreviated to "VirtualData##" to get the same result:
VirtualDatainfo: the general concept to have page content act as data
Use VirtualData to enrich index and folder lists
Pretty much the same can work in folders and the PageIndex:
| Variable IndexAutoTalk: |
info |
|
|
Look into FolderVirtualData to see the automatic display of the "info" variables.
FolderWikiFeatures FolderVirtualData
|