Difference between revisions of "Dataformview Aligned"
Note: You are currently viewing documentation for Moodle 3.4. Up-to-date documentation for the latest stable version of Moodle is likely available here: Dataformview Aligned.
Line 1: | Line 1: | ||
{{Dataform}} | {{Dataform}} | ||
− | The Aligned view displays entries in an aligned table. The view offers a simplified template design which takes a simple list of field patterns and creates one table column per pattern. | + | The Aligned view displays entries in an aligned table. The view offers a simplified template design which takes a simple list of field patterns and creates one table column per pattern. |
− | |||
− | |||
==Settings== | ==Settings== | ||
{{Dataformview General settings}} | {{Dataformview General settings}} | ||
{{Dataformview View template}} | {{Dataformview View template}} | ||
===Entry template=== | ===Entry template=== | ||
− | The entry template of the Aligned view is a simplified definition of a table row. It consists of a list of column definitions, each column definition in a new line. The column definition format: | + | The entry template of the Aligned view is a simplified definition of a table row. It consists of a list of column definitions, each column definition in a new line. The column definition format: |
+ | <nowiki> | ||
+ | <field pattern>|<column header (optional)>|<cell css class (optional)> | ||
+ | </nowiki> | ||
+ | |||
+ | For example, the following definition will display the entries in a headerless table with 3 columns and the specified field patterns in order: | ||
<nowiki> | <nowiki> | ||
Line 15: | Line 18: | ||
</nowiki> | </nowiki> | ||
− | The following definition will display the entries in a table with 5 columns and a header row with header titles in the first 3 columns: | + | The following definition will display the entries in a table with 5 columns and a header row with header titles in the first 3 columns and the css class 'prettyName' assigned to each cell in the first column: |
<nowiki> | <nowiki> | ||
− | [[Name]]|Name | + | [[Name]]|Name|prettyName |
[[Email]]|Email | [[Email]]|Email | ||
[[Message]]|Message | [[Message]]|Message |
Revision as of 18:09, 30 January 2014
- Overview
- Activity administration
- Building an activity
- CSS tips and tricks
- JS tips and tricks
- Activating RSS
- Activity workflow
- Grading
The Aligned view displays entries in an aligned table. The view offers a simplified template design which takes a simple list of field patterns and creates one table column per pattern.
Settings
Entry template
The entry template of the Aligned view is a simplified definition of a table row. It consists of a list of column definitions, each column definition in a new line. The column definition format:
<field pattern>|<column header (optional)>|<cell css class (optional)>
For example, the following definition will display the entries in a headerless table with 3 columns and the specified field patterns in order:
[[Name]] [[Email]] [[Message]]
The following definition will display the entries in a table with 5 columns and a header row with header titles in the first 3 columns and the css class 'prettyName' assigned to each cell in the first column:
[[Name]]|Name|prettyName [[Email]]|Email [[Message]]|Message ##edit## ##delete##
Patterns
Type specific patterns
None.