Note: This documentation is for Moodle 2.7. For up-to-date documentation see Dataform Views.

Dataform Views: Difference between revisions

From MoodleDocs
No edit summary
No edit summary
Line 16: Line 16:
===Per page===
===Per page===
The max number of entries to display in the view at any given time. If the number of viewable entries is higher than the selected per-page a paging bar will be displayed (provided the ##pagingbar## is added to the view template).
The max number of entries to display in the view at any given time. If the number of viewable entries is higher than the selected per-page a paging bar will be displayed (provided the ##pagingbar## is added to the view template).
==Standard types==
==Common patterns==
===[[Dataformview Aligned|Aligned]]===
This view presents data in rows aligned to the left.
===[[Dataformview CSV|CSV]]===
This view allows you to import and export data to a csv file.
===[[Dataformview Grid|Grid]]===
Two dimensional view where each entry is presented in a table cell. This view allows you to control the number of columns and raws that will be displayed on a single page.
An extension to the grid view that allows you to add your own header and footer before and after repeated table entry.
===[[Dataformview Interval|Interval]]===
This view allows you to set duration interval according to which the information is displayed. You can group the information by certain field tag or rating and you can control the the number of entries to be displayed on each page. This view is particularly useful for content display.
===[[Dataformview PDF|PDF]]===
With this view you can display and export data to PDF file.
===[[Dataformview RSS|RSS]]===
With this view you can display and export data to PDF file.
===[[Dataformview Tabular|Tabular]]===
The most common view, this view presents information in a table. The tabular view is useful both for editing and display purposes.
==Installing Dataformview add-ons==
 
==Developing Dataformview add-ons==

Revision as of 18:40, 28 January 2014


Dataform views allow you to control the way information is presented in the Dataform activity.

Common settings

Name

Short name for the view. The view name can be used in certain view patterns in which case the format of the name should as simple as possible, only alpha or alphanumeric characters, to avoid pattern parsing problems.

Description

Short description of the view purpose and characteristics to allow managers to see at a glance what each view is intended for. This description is displayed only in the view management list.

Visibility

This setting allows denying students' access to the view. The setting does not affect managers' (manage templates capability) access.

  • Disabled: Students cannot access the view and do not see the view name in the views menu.
  • Enabled: Students can access the view but do not see the view name in the views menu.
  • Visible: Students can access the view and can see the view name in the views menu.

Filter

A predefined filter from the Filters list (if any) that will be enforced in the view.

Per page

The max number of entries to display in the view at any given time. If the number of viewable entries is higher than the selected per-page a paging bar will be displayed (provided the ##pagingbar## is added to the view template).

Common patterns