Note: You are currently viewing documentation for Moodle 3.8. Up-to-date documentation for the latest stable version of Moodle may be available here: Dataform search sort.

Dataform search sort: Difference between revisions

From MoodleDocs
No edit summary
No edit summary
Line 9: Line 9:
{| class="nicetable"  style="background-color:inherit;border:0;"   
{| class="nicetable"  style="background-color:inherit;border:0;"   
{{Dataform searchable sortable field table row |  | [[Dataformfield entryactions|Entry actions]] | None }}
{{Dataform searchable sortable field table row |  | [[Dataformfield entryactions|Entry actions]] | None }}
{{Dataform searchable sortable field table row | F2F2F2 | [[Dataformfield entryauthor|Entry author]] | {{Dataformfield entryauthor import csv}} }}
{{Dataform searchable sortable field table row |#F6F6F6| [[Dataformfield entryauthor|Entry author]] | {{Dataformfield entryauthor import csv}} }}
{{Dataform searchable sortable field table row |  | [[Dataformfield entrygroup|Entry group]] | {{Dataformfield entrygroup import csv}} }}
{{Dataform searchable sortable field table row |  | [[Dataformfield entrygroup|Entry group]] | {{Dataformfield entrygroup import csv}} }}
{{Dataform searchable sortable field table row | F2F2F2 | [[Dataformfield entrytime|Entry time]] | {{Dataformfield entrytime import csv}} }}
{{Dataform searchable sortable field table row |#F6F6F6| [[Dataformfield entrytime|Entry time]] | {{Dataformfield entrytime import csv}} }}
{{Dataform searchable sortable field table row |  | [[Dataformfield checkbox|Checkbox]] | {{Dataformfield checkbox import csv}} }}
{{Dataform searchable sortable field table row |  | [[Dataformfield checkbox|Checkbox]] | {{Dataformfield checkbox import csv}} }}
{{Dataform searchable sortable field table row | F2F2F2 | [[Dataformfield commentmdl|Comment Mdl]] | None }}
{{Dataform searchable sortable field table row |#F6F6F6| [[Dataformfield commentmdl|Comment Mdl]] | None }}
{{Dataform searchable sortable field table row |  | [[Dataformfield entrystate|Entry state]] | {{Dataformfield entrystate import csv}} }}
{{Dataform searchable sortable field table row |  | [[Dataformfield entrystate|Entry state]] | {{Dataformfield entrystate import csv}} }}
{{Dataform searchable sortable field table row | F2F2F2 | [[Dataformfield file|File]] | {{Dataformfield file import csv}} }}
{{Dataform searchable sortable field table row |#F6F6F6| [[Dataformfield file|File]] | {{Dataformfield file import csv}} }}
{{Dataform searchable sortable field table row |  | [[Dataformfield number|Number]] | {{Dataformfield number import csv}} }}
{{Dataform searchable sortable field table row |  | [[Dataformfield number|Number]] | {{Dataformfield number import csv}} }}
{{Dataform searchable sortable field table row | F2F2F2 | [[Dataformfield picture|Picture]] | {{Dataformfield picture import csv}} }}
{{Dataform searchable sortable field table row |#F6F6F6| [[Dataformfield picture|Picture]] | {{Dataformfield picture import csv}} }}
{{Dataform searchable sortable field table row |  | [[Dataformfield radiobutton|Radio button]] | {{Dataformfield radiobutton import csv}} }}
{{Dataform searchable sortable field table row |  | [[Dataformfield radiobutton|Radio button]] | {{Dataformfield radiobutton import csv}} }}
{{Dataform searchable sortable field table row | F2F2F2 | [[Dataformfield ratingmdl|Rating Mdl]] | None }}
{{Dataform searchable sortable field table row |#F6F6F6| [[Dataformfield ratingmdl|Rating Mdl]] | None }}
{{Dataform searchable sortable field table row |  | [[Dataformfield select|Select]] | {{Dataformfield select import csv}} }}
{{Dataform searchable sortable field table row |  | [[Dataformfield select|Select]] | {{Dataformfield select import csv}} }}
{{Dataform searchable sortable field table row | F2F2F2 | [[Dataformfield selectmulti|Select (multiple)]] | {{Dataformfield selectmulti import csv}} }}
{{Dataform searchable sortable field table row |#F6F6F6| [[Dataformfield selectmulti|Select (multiple)]] | {{Dataformfield selectmulti import csv}} }}
{{Dataform searchable sortable field table row |  | [[Dataformfield text|Text]] | {{Dataformfield text import csv}} }}
{{Dataform searchable sortable field table row |  | [[Dataformfield text|Text]] | {{Dataformfield text import csv}} }}
{{Dataform searchable sortable field table row | F2F2F2 | [[Dataformfield textarea|Text area]] | {{Dataformfield textarea import csv}} }}
{{Dataform searchable sortable field table row |#F6F6F6| [[Dataformfield textarea|Text area]] | {{Dataformfield textarea import csv}} }}
{{Dataform searchable sortable field table row |  | [[Dataformfield time|Time]] | {{Dataformfield time import csv}} }}
{{Dataform searchable sortable field table row |  | [[Dataformfield time|Time]] | {{Dataformfield time import csv}} }}
{{Dataform searchable sortable field table row | F2F2F2 | [[Dataformfield url|Url]] | {{Dataformfield url import csv}} }}
{{Dataform searchable sortable field table row |#F6F6F6| [[Dataformfield url|Url]] | {{Dataformfield url import csv}} }}
|}
|}

Revision as of 16:04, 20 March 2014


Using predefined filters

Using advance (user) filters

Searchable/Sortable fields

This list includes only internal and standard fields. For search/sort options of add-on fields please consult the respective field's page.

Entry actions None
Entry author Importing entry author info allows for adding entries on behalf of users. You can use either one of the following patterns provided that the respective user attribute (id, idnumber, username) is unique in your Moodle site.
  • [[EAU:id]]
  • [[EAU:idnumber]]
  • [[EAU:username]]
Entry group Importing entries with group info allows you to add entries for specific groups. You can use either one of the following patterns. Currently you can import group info for an entry even if the designated entry author is not a member of that group.
  • [[EGR:id]]
  • [[EGR:idnumber]]
Entry time Importing entries with entry time info allows you to add entries with specific time created and modified. When both time created and time modified are imported, if time modified is earlier than time created it will be adjusted to the time created.

The imported value can be a string containing an English date/time (including relative date/time such as 'tomorrow') or a Unix timestamp.

  • [[ETM:timecreate]]
  • [[ETM:timemodified]]
Checkbox By default only options that exist in the field configuration will be imported. If you set 'Allow adding options' to Yes, options which do no exist in the field configuration will also be imported and added to the configuration. Multiple options should be separated by #.

Applicable patterns:

  • [[fieldname]]
Comment Mdl None
Entry state Imports entry states by state label. For example, with an entrystate field that contains the states Submitted, Under review, Reviewed, Accepted and Rejected, the import CSV value can be either Submitted, Under review, Reviewed, Accepted or Rejected. Note that since Submitted every new entry is by default in that state and there is no need to import it explicitly.

Applicable patterns:

  • [[fieldname]]
File You can import entries with file field content. The field import settings allow you to upload a zip file with the content files. The imported value in the csv should be a comma delimited list of file names. For each imported entry, if the zip file contains files with the specified file names, these files will be added to the entry content. If imported entries specify the same file names, each entry will have its own copies of the imported files.

Applicable patterns:

  • [[fieldname]]
Number Imports numbers, e.g. 42, 42.6778, -133.

Applicable patterns:

  • [[fieldname]]
Picture You can import entries with images. The field import settings allow you to upload a zip file with image files. The imported value in the csv should be a comma delimited list of file names. For each imported entry, if the zip file contains files with the specified file names, these files will be added to the entry content. If imported entries specify the same file names, each entry will have its own copies of the imported files.

Applicable patterns:

  • [[fieldname]]
Radio button By default only options that exist in the field configuration will be imported. If you set 'Allow adding options' to Yes, options which do no exist in the field configuration will also be imported and added to the configuration.

Applicable patterns:

  • [[fieldname]]
Rating Mdl None
Select By default only options that exist in the field configuration will be imported. If you set 'Allow adding options' to Yes, options which do no exist in the field configuration will also be imported and added to the configuration.

Applicable patterns:

  • [[fieldname]]
Select (multiple) By default only options that exist in the field configuration will be imported. If you set 'Allow adding options' to Yes, options which do no exist in the field configuration will also be imported and added to the configuration. Multiple options should be separated by #.

Applicable patterns:

  • [[fieldname]]
Text Imports plain text, e.g. Hello world, Dataform.

Applicable patterns:

  • [[fieldname]]
Text area Imports multi-line text, either plain or html. For importing html, the field should be configured to enable editor. For example, the import value
<span style="background-color:#006699;color:#FFF">Big Blue Marble</span>

would be imported as such and displayed as Big Blue Marble when the field enables editor, and as simple text Big Blue Marble if editor is not enabled in the field.

Applicable patterns:

  • [[fieldname]]
Time The imported value can be a string containing an English date/time (including relative date/time such as 'tomorrow') or a Unix timestamp.

Applicable patterns:

  • [[fieldname]]
Url Imports valid urls, e.g. moodle.org, www.substantialmethods.com.

Applicable patterns:

  • [[fieldname]]