2/9/2016
Creating a custom list template | Fabrik
Log in
Home
Forums
Main_Page
Wiki Special:
Page List
Home » Wiki » Lists » How do I ... Lists Advanced
Creating a custom list template Page Creating a custom list template
Contents Location Custom CSS in existing list templates Copying an existing template Creating a catalog like list view (div template) Template overall structure default.php default_row.php default_filter.php default_headings.php default_buttons.php template_css.php javascript.js Layout Overrides List row buttons Example don't show edit button
Location (top) List templates are located in "/components/com_fabrik/views/list/tmpl/". Each template has its own folder.
Custom CSS in existing list templates
(top)
http://fabrikar.com/forums/index.php?wiki/customstylingalist/
Copying an existing template (top) To create a new template we suggest that you copy an existing template folder and alter it to suit your needs. Copy: components/com_fabrik /views/list/tmpl/bootstrap/ to: components/com_fabrik /views/list/tmpl/mytemplate/ The template used for a list is normally set in List / Details / Layout / FrontEnd or Template, however this can be overridden in the menu item that links to the List in which case you will need to edit the Menu http://fabrikar.com/forums/index.php?wiki/creating-a-custom-list-template/
1/7
2/9/2016
Creating a custom list template | Fabrik
instead. Creating a catalog like list view (div template)
(top)
Use a copy of the "div" template (don't modify the div template itself, it will be overridden with the next update). In default.php you can set these general parameters Code (Text):
// The number of columns to split the list rows into $columns = 1; // Show the labels next to the data: $this>showLabels = true; // Show empty data $this>showEmpty = false; In default_row.php single element's label and data can be addressed via Code (Text):
$elementLabel = $this>groups>tablename___elementname; //replace 'tablename___elementn $elementData = $this>_row>data>tablename___elementname;
Template overall structure (top) default.php
(top)
PHP:
http://fabrikar.com/forums/index.php?wiki/creating-a-custom-list-template/
2/7
2/9/2016
Creating a custom list template | Fabrik
emptyStyle emptyDataMessage; ?>