Plugin List | |
If you are searching for the list of all plugins, see All Plugins. A graphical user interface (ListGUI) was added in Tiki18 and massively improved in Tiki19. Starting in Tiki21, it has been enhanced to use with Federated Search. And new in Tiki26: Sublist. |
Introductory Remarks | |
LIST is a very powerful and flexible wiki plugin that can return and output data (a listing) of information using various sorts, filters, etc. It uses the search data provided by the improved search index so it should be emphasized that this means that only the data that has actually been indexed by the Search and List from Unified Index can be accessed. Good knowledge of how Unified Index works is therefore recommended. By utilizing a full-text search across most major Tiki features, which is then enhanced by a programmable filter, OUTPUT, DISPLAY, and SORT control blocks, this combination can render almost any information in the database in any format desired. This means that LIST is similar in some respects to Pretty Trackers output of TrackerList plugin but it is not limited to just the Tracker data. When combined with the PluginCustomSearch plugin, LIST can replace TrackerList and TrackerFilter plugin usage and can considerably extend it!! Please also see PluginListExecute. Since Tiki19, there is a tool to automatically convert a TrackerList plugin into a List plugin. See PluginTrackerList To PluginList Converter. Please note you can use nested LIST. |
Control blocks vs. Wiki Plugins | |
"Control blocks" are quite similar to "wiki plugins", as they use the very same syntax of parameters and values. However, for both, control blocks and wiki plugins, it makes sense to stick to some best practices in respect of consistent sort order. This is not mandatory but makes it easier to understand the principle, to read the own code, and to work together in teams. This is especially valid for the LIST control blocks, as there are usually a lot of control blocks used in one LIST plugin. The difference between "control blocks" and "wiki plugins" is, that you cannot use a "control block" stand-alone outside one of the plugins, which use the "PluginList" syntax, as there are "PluginList", "PluginCustomSearch" and "PluginListExecute" (?). If you place a single List "control block" stand alone on a wiki page, either nothing happens or you'll get an error message. "Wiki plugins", instead, can be used stand-alone anyplace where you can use wiki syntax and, to some extent, you can nest them as well. |
Clarifying a potential confusion | |
Potentially confusing is the difference between a control block and a parameter both called "format": The parameter "format" (in lower case) inside the control block "{display}" is responsible for how the displayed result is rendered. Maybe it also could have been named "render" instead of "format", but "format" was the naming decision of our coders and that makes sense as well, maybe even better sense for some reason. The control block "{FORMAT(name=...)}" (in upper case) wraps around the control block "{display}" and is for example responsible for the reference to the control block column (when we consider the example of a tracker table display). The other potentially confusing fact is, is the difference and same time similarity of the parameters "field" and "name", where we use always "field" in the {filter} and in the {column} inside the "{OUTPUT(template=table)})" control block. When we use this ... Copy to clipboard
... then the "field"' parameter contains a "Unified Index field"'' - in this case a tracker field which we want to display. But when we use this ... Copy to clipboard
... we referenced (passed) the actual value of the "field" parameter of control block "{column ...}" to the subcontrol block "{display ...}" inside the control block '"{FORMAT(...)", where we for some reason cannot use a parameter '"field"''. When we reference the original content of "field" from one to another control block, both control blocks need to "know" about each other, which you see as obvious, when you have more than only one column. In other words: "Unified Index field string" goes from "column field" to "display name" Important to know is the content of the page Search and List from Unified Index, where you find a list of all available "Unified Index fields" for which you can filter and in respect of tracker based tables you can use to create columns. |
Syntax Overview | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The overall format is the same as any other plugin: Copy to clipboard
Any of the following control blocks with their own plugin-like syntax are placed in the body of the LIST plugin to define the search query that will be carried out and how the resulting list will be presented :
|
Parameters | |||||||||||||||||||||||||||||||||||||||||||||
While Plugin List is generally configured with plugins (some say control blocks) contained in the body as described above, there are a few standard parameters like other plugins, they are: Search for, list, and filter all types of items and display custom-formatted results.
|
Basic worked example | |
step by step instructions to be added here for a basic worked example
In the meantime, you can see a basic working example here: GeoLocation (or play in your tiki with a similar basic example after applying the profile Easy Geoblog, which is available at the Profiles Wizard ). |
Body content elements of the LIST Plugin | |
Each of the principle plugin-like control blocks is described in more detail in the following set of child pages: |
Additional General Notes on the Syntax | |
|
Available Fields | |
All the fields that are indexed can be referenced by the various plugin-like control blocks e.g. filter , FORMAT, etc and a complete list of fields for each object type can be found in the Search and List from Unified Index documentation. |
More Worked Examples | |
Example Tracker item with Comments | |
ItemCopy to clipboard
CommentsCopy to clipboard
|
Example Tracker item with a picture (file) | |
Copy to clipboard
Same Example as above within a table(see: LIST - OUTPUT control block) Copy to clipboard
|
Example Blog Post List | |
This code: Copy to clipboard
Would produce on this site:
|
Tutorials | |
Additional child pages of the LIST documentation | |
Related | |
See also: Aliases
- Plugin List
|