Note: You are currently viewing documentation for Moodle 3.2. Up-to-date documentation for the latest stable version of Moodle is probably available here: Dataformfield entryauthor.

Dataformfield entryauthor: Difference between revisions

From MoodleDocs
(Created page with "{{Dataformfield plugin info |description = Displays info about the entry author (e.g. first name, last name, user picture etc.). }}")
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:
|description =  
|description =  
Displays info about the entry author (e.g. first name, last name, user picture etc.).
Displays info about the entry author (e.g. first name, last name, user picture etc.).
==Features==
* TBC
|general settings =
''Not applicable.''
|common patterns =
|other patterns =
===Entry level patterns===
EAU is the default name of the this field and is defined as a language string. If the language string is modified after the field patterns have been added to a view template, the patterns need to adjusted in order to reflect the new name.
====<nowiki>[[EAU::id]]</nowiki>====
====<nowiki>[[EAU:username]]</nowiki>====
====<nowiki>[[EAU:name]]</nowiki>====
====<nowiki>[[EAU:firstname]]</nowiki>====
====<nowiki>[[EAU:lastname]]</nowiki>====
====<nowiki>[[EAU:firstnamephonetic]]</nowiki>====
====<nowiki>[[EAU:lastnamephonetic]]</nowiki>====
====<nowiki>[[EAU:middlename]]</nowiki>====
====<nowiki>[[EAU:alternatename]]</nowiki>====
====<nowiki>[[EAU:email]]</nowiki>====
====<nowiki>[[EAU:picture]]</nowiki>====
====<nowiki>[[EAU:picturelarge]]</nowiki>====
====<nowiki>[[EAU:edit]]</nowiki>====
|sort search =
{{Dataformfield entryauthor search sort}}
|import export =
{{Dataformfield entryauthor import csv}}
}}
}}

Latest revision as of 00:23, 17 March 2014


Displays info about the entry author (e.g. first name, last name, user picture etc.).

Features

  • TBC

Settings

Not applicable.


Patterns

Entry level patterns

EAU is the default name of the this field and is defined as a language string. If the language string is modified after the field patterns have been added to a view template, the patterns need to adjusted in order to reflect the new name.

[[EAU::id]]

[[EAU:username]]

[[EAU:name]]

[[EAU:firstname]]

[[EAU:lastname]]

[[EAU:firstnamephonetic]]

[[EAU:lastnamephonetic]]

[[EAU:middlename]]

[[EAU:alternatename]]

[[EAU:email]]

[[EAU:picture]]

[[EAU:picturelarge]]

[[EAU:edit]]

Sort / Search

  • Current user – (search only) matches entries authored by the current user.
  • User first name
  • User last name
  • User username
  • User id number

Import / Export

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]]