Liqiud basics
Modules
API
Mailer
List template
On this page
Overview
Sometimes you want each list item to have their own page. This could be useful for example when you want to display courses on a university. You want to show each course on a separate page which only contains the information about that course. To be able to do this you have to check the checkbox "Make list items visible on the site" under the List settings.
Below is a list of all the available drops on the list template
| Name | Description |
| row.row_id | ID of the list item |
| row.search_title | By default the ID of the list item (see note) |
| row.update_path | {% wm3form lists.deklaration.row_create_path %} {% wm3form row.update_path, method=“patch” %} |
| row.url | URL of the list item. Only exists if list is visible on page |
row.search_title is by default the ID of the list item. You can change this under "List settings" by selecting your chosen attribute under the "Search title" select dropdown.
lists.listname.tpl
When "Make list items visible on the site" is enabled all list items will get their own unique URL. This is required for you to be able to use this template
You can use the template when you want to display a single list item on a page. For example if you have a list named "Education" that contains different courses you need to create a template called lists.education.tpl. In this template you have access to the variable row which you can use to get data from the list item.
Access "title" from the list item
{{ row.title }}Updated: 2019-12-05