Cdml List
A CdmlElement to display page lists. The pages are referenced relative to the current page (or a given root page). One typical application is the display of subpages as a kind of local index.
A simple example
CdmlList/AbcDef
CdmlList/Family
CdmlList/Test
is created by:
[[list]]
- layout selects the layout (default: simple lines ending in EOL).
- e. g. [layout=*]: für eine eingerückte Liste mit Bullets.
- e. g. [layout=table]: für eine Tabellendarstellung
- type selects the page range
- e. g. [type=*] all pages (page parameter not needed)
- e. g. [type=self] only the requested page
- e. g. [type=children] all direct subpages of the reference page
- e. g. [type=grandchildren] all subpages two levels below the reference page
- e. g. [type=descendants] all subpages and their subpages ...
- e. g. [type=family] the WikiBranch of the parent page
- e. g. [type=sfamily] the referenced page and its children
- e. g. [type=xfamily] the WikiBranch of the grandparent page
- e. g. [type=branch] the referenced page and its descendants
- e. g. [page=@] or [page=*] all pages (independent from the page referenced)
- page sets the reference page (defaults to the current page)
- e. g. [page=CdmlCalendar] (see example below)
- filter if the pagename contains the parameter it is not displayed.
- select only pagenames containing the parameter are displayed.
- e. g. [select=Article] only pages that contain "Article" in their name are displayed.
- date an additional colums displays the date and time of the last change.
- e. g. [date=yes] the date of last change is displayed.
- count sets the maximum number of pages displayed.
- options varies the function of CdmlList
- e. g. [options=r] changes the order of the pages to random
- vida display of VirtualData in the columns (needs parameter variables for the details)
- variables defines the columns of VirtualData to display (has no effect without the enabling parameter vida)
- e. g. [variables=address,phone]
- shortenpagename suppress the display of a common part of the pagename.
- e. g. [shortenpagename=TopPage/ParentPage] reduces "TopPage/ParentPage/PageXY" to "PageXY"
More examples
[[list][page=CdmlCalendar][type=descendants][layout=table][date=yes][count=3]]
A list of random pages:
[[list][type=top][layout=*][count=5][options=r]]
Shortened page names:
| 3 pages: | date of last change |
200412 | November 20, 2004 12:10
|
200411 | November 17, 2004 16:01
|
200407 | November 17, 2004 15:17
|
|
|
[[list][page=CdmlCalendar][type=descendants][layout=table][date=yes][count=3][shortenpagename=CdmlCalendar]]
A simple vida example (intro is a standard variable that contains the first sentence of the page):
[[list][vida=1][page=HowTo][variables=intro]]
FolderWikiFeatures FolderCdml
Messages
AndriusKulikauskas February 13, 2009 15:51 CET Hi Helmut, I am thinking it would be useful to extend CdmlList so that we can have lists of variable values where one of the variables is set (for example, Investigator=BenoitCouture). My understanding is that CdmlList does not currently support that. I think I could modify the sub CdmlList to do that. If I did, would you add that to the main code? and do you have any suggestions how best to do that?
HelmutLeitner January 12, 2010 10:47 CET : Sorry for missing this message, I just read it. What do you mean by "where one of the variables is set"?
|