Note: You are currently viewing documentation for Moodle 2.6. Up-to-date documentation for the latest stable version of Moodle may be available here: Datalynx Datalynx Tags.

Datalynx Datalynx Tags

From MoodleDocs

Datalynx tags are special patterns used in the view settings as a placeholder. These tags inserted in the settings will then be replaced in the view with dynamically created data. Example: The tag ##author:firstname##, when placed in the view setting "entry template", will show the first name of the user who has created the entry at the place, where the tag was put. ##author:firstname## in the settings becomes Michael, if the user has Michael as first name in his user profile. When a user is editing/creating an entry, the datalynx field tags will be displayed as HTML forms, where the user can input data (write text, select choices from a dropdown menu, and so on).

Datalynx tag types and tag locations

There are different types of datalynx tags. They can be divided into "where they can be placed" and "what data they will show".

  • Datalynx field tags: These tags will display the value of a field, in an entry. In editing mode they will show a form element, that is used for data input. Datalynx field tags can only be used in the "entry template" section in the settings of a view.
    • Patterns of a datalynx field tag: This is the pattern used in the view settings as a placeholder:
      • [[fieldname]] This will display the value of a field in an entry
      • [[fieldname@]] This will display the content of the "field label", which itself includes a conditional text (that means for example a description of the field and the field value itself. If the field value is empty, the field label will not be shown at all). For a detailed explanation of the field label have a look at Fields
  • Datalynx entry tags: These tags can