PluginList output control block | |
|
Parameters | ||||||||||||||||||||||||||||||||
|
Built-in templates | ||||||||||||||||||
|
Basic Wiki Formatting Within Plugin | ||||||||||||||||||||||||||||||||||||
By placing Wiki syntax directly in the OUTPUT body content, along with the required objects to be displayed, the control block allows a template for each row of output to be constructed within the LIST plugin itself. In the example below a table is constructed with the table 'header' row placed before the LIST and the table closing characters placed after the LIST. Each row of the table is then created by the LIST plugin with each table cell element generated by the display control block and separated by the usual table separator, i.e., a Wiki Output Sample ||Type|Object {LIST()} {list max="10"} {OUTPUT()}{display name="object_type"}|{display name="object_id"} {OUTPUT} {ALTERNATE()}This will display if no results are found{ALTERNATE} {LIST} ||
|
Table Formatting | |
A simple built-in templating method can be used by setting the OUTPUT template parameter to |
Table Column Control | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Column Parameters
Column Mode ParameterWhen you use table output with a column generating HTML output (like Format parametersAdded in Tiki 11+
Sample using the default table formatting {LIST()} {pagination max="12"} {filter field="tracker_id" content="17"} {filter type="trackeritem"} {OUTPUT(template="table")} {column sort="title" label="Title" translatelabel="y" field="title_link" mode="raw"} {column label="Started" field="started" mode="raw"} {column sort="tracker_field_18" field="completed" label="Completed"} {OUTPUT} {FORMAT(name="title_link")}{display name="title" format="objectlink"}{FORMAT} {FORMAT(name="started")}{display name="tracker_field_started" format="trackerrender" editable=inline}{FORMAT} {FORMAT(name="tracker_field_completed")}{display name="tracker_field_completed"}{FORMAT} {LIST}
(Tiki 18+) The use of the FORMAT control blocks allows individual objects to be 'formatted' and then referenced in the various OUTPUT methods - see PluginList format control block for more details. |
Download CSV of Table Results | |
(Tiki 18+) Output formatting with download option {OUTPUT(template="table" downloadable="Sample file.csv")} ...column specification... {OUTPUT}
Output formatting with download option {OUTPUT(template="table" downloadable="Sample file.csv" downloadable-position="top")} ...column specification... {OUTPUT}
|
Table formatting with tablesorter | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Starting with Tiki15, PluginList can be used with tablesorter. Use a Sample with tracker list and calculation {LIST()}{pagination max="12"} {filter field="tracker_id" content="17"} {OUTPUT(template="table")} {column label="Month" field="month" mode="raw"} {column label="Started" field="started"} {column label="Completed" field="completed"} {column label="Status" field="status"} {tablesorter server="n" sortable="type:reset" tsortcolumns="type:text|type:none|type:none|type:text" tsfilters="type:nofilter|type:nofilter|type:nofilter|type:dropdown;empty:empty" tstotals="| |type:col;label:Total hours|" tstotaloptions="ignore|ignore| |ignore" tstotalformat="#,###."} {OUTPUT} {FORMAT(name="month")}{display name="tracker_field_month" format="objectlink"}{FORMAT} {FORMAT(name="started")}{display name="tracker_field_started"}{FORMAT} {FORMAT(name="completed")}{DIV(type="span" class="float-right")}{display name="tracker_field_completed"}{DIV}{FORMAT} {FORMAT(name="status")}{display name="tracker_field_status" default=""}{FORMAT} {LIST}
Sample adding tablesorter functionality {LIST()} {filter type="trackeritem"} {filter content="water"} {OUTPUT(template="table")} {column sort="title" label="Title" field="title_link" mode="raw"} {column label="Description" field="description"} {column sort="tracker_field_18" field="event_date" label="Event Date"} {tablesorter server="n" sortable="type:reset" tsortcolumns="type:text|type:text|type:digit" tsfilters="type:text|type:dropdown|type:digit" tspaginate="max:10" tscolselect="critical|5|6"} {OUTPUT} {FORMAT(name="title_link")}{display name="title" format="objectlink"}{FORMAT} {FORMAT(name="event_date")}{display name="tracker_field_18" format="date"}{FORMAT} {LIST}
No results for query.
|
Table: expand table, number of items found, optional title | |
Starting with Tiki20, PluginList has a few optional parameters that work in conjunction with the table built-in template. Use a
See usage example below: Table showing items count and with an expand button {LIST()} {filter content="1" field="tracker_id"} {OUTPUT(template="table")} {tableparams allowtableexpansion="y" shownbitems="y" title="!This is the title And this is the subtitle"} {column label="Book Title" field="book_title"} {column label="Author" field="author"} {column label="Pages" field="pages"} {column label="Year" field="year"} {OUTPUT} {FORMAT(name="book_title")}{display name="tracker_field_bookTitle"}{FORMAT} {FORMAT(name="author")}{display name="tracker_field_bookAuthor"}{FORMAT} {FORMAT(name="pages")}{display name="tracker_field_bookPages"}{FORMAT} {FORMAT(name="year")}{display name="tracker_field_bookYear"}{FORMAT} {LIST}
|
Media List Formatting | |
Tiki13+
Sample using the default media list formatting {LIST()} {filter relation="" objecttype="user" qualifier="tiki.badge.received.invert"} {OUTPUT(template="medialist")} {icon field="tracker_field_image"} {body field="tracker_field_description"} {OUTPUT} {LIST}
No results for query.
|
Carousel Formatting | ||||||||||||
Parameters
Sample using the default Bootstrap Carousel formatting {LIST()} {filter field="gallery_id" content="1"} {OUTPUT(template="carousel")} {carousel interval="2000" wrap="true" pause="hover" id="mycarousel"} {body field="pic" mode="raw"} {caption field="caption"} {OUTPUT} {FORMAT(name="pic")}{display format="wikiplugin" name="wikiplugin_img" fileId="object_id" styleimage="width:100%"}{FORMAT} {FORMAT(name="caption")} !!! {display name="title" default="Untitled"} {display name="description" default=""}{FORMAT} {LIST}
|
Carousel parameters | |
New parameters are added regularly and you can check them by looking at "templates/search/list/carousel.tpl"
|
Example | |
|
Wikisuite Bpm Mobile | |
|
Wikisuite Security Mobile | |
File is not an image. |
Test3 | |
File not found. |
colorbox | |
|
Wikisuite Os Mobile | |
|
Wikisuite Chat Mobile | |
|
Wikisuite Commerce Mobile | |
|
Tiki19 Slide1 | |
|
Tiki Slideshow2 | |
File is not an image. |
Test | |
|
forum_and_list_synchro_admin_v3.png | |
|
Layout Bg Optimized | |
|
Screenshot2 | |
|
Tikislideshowmobile2Artboard 1 Copy | |
|
Wikisuite Web Mobile | |
File is not an image. |
9.zip | |
|
Tiki19 Slide5 | |
|
Tiki19 Slide4 | |
|
Tiki19 Slide6 | |
File is not an image. |
5.zip | |
|
Wikisuite Files Mobile | |
|
Wikisuite Email Mobile | |
|
Tiki19 Slide3 | |
|
Tiki19 Slide2 | |
|
TikislideshowmobileArtboard 1 | |
Previous
Next
|
Fade Example | |
In Tiki 18 you can use a fade transition by adding |
Wikisuite Bpm Mobile | |
|
Wikisuite Security Mobile | |
File is not an image. |
Test3 | |
File not found. |
colorbox | |
|
Wikisuite Os Mobile | |
|
Wikisuite Chat Mobile | |
|
Wikisuite Commerce Mobile | |
|
Tiki19 Slide1 | |
|
Tiki Slideshow2 | |
File is not an image. |
Test | |
|
forum_and_list_synchro_admin_v3.png | |
|
Layout Bg Optimized | |
|
Screenshot2 | |
|
Tikislideshowmobile2Artboard 1 Copy | |
|
Wikisuite Web Mobile | |
File is not an image. |
9.zip | |
|
Tiki19 Slide5 | |
|
Tiki19 Slide4 | |
|
Tiki19 Slide6 | |
File is not an image. |
5.zip | |
|
Wikisuite Files Mobile | |
|
Wikisuite Email Mobile | |
|
Tiki19 Slide3 | |
|
Tiki19 Slide2 | |
|
TikislideshowmobileArtboard 1 | |
Previous
Next
|
Count Formatting | |
Tiki15+
{LIST()} {pagination max=1} {filter type="trackeritem"} {filter field="tracker_id" content="7"} {OUTPUT(template="count")} {OUTPUT} {LIST}
|
Report Formatting | |
Tiki20+
(also see Calculations Syntax) Example: {LIST()} {filter field="tracker_id" content="45"} {filter type="trackeritem"} {OUTPUT(report="y")} There are {CALC()}(count results){CALC} entries. The total amounts are {CALC()} (add (for-each (list results) (formula (if (equals tracker_field_trCurrency (str USD)) tracker_field_trAmount 0)))) {CALC} USD and {CALC()} (add (for-each (list results) (formula (if (equals tracker_field_trCurrency (str MOP)) tracker_field_trAmount 0)))) {CALC} MOP. {OUTPUT} {LIST}
{LIST()} {filter field="tracker_id" content="22"} {filter type="trackeritem"} {OUTPUT(report="y")} {FANCYTABLE()} Username|Duration|Invoice {CALC()} (subtotal (list results) (group tracker_field_TimeSheetWorkerUsername) (aggregate tracker_field_TimeSheetMinutesWorked tracker_field_TimeSheetInvoiceFromFreelancer) (formula add count) (separators (str |) (str ~nl~))) {CALC} {FANCYTABLE} {OUTPUT} {LIST}
|
Wiki Formatting (Within Plugin) | |
For each result, the plugin allows to apply a template. See PluginList advanced output control block. All the LIST Plugin control blocks |