-
Improvement
-
Resolution: Fixed
-
Minor
-
2.7.1
-
None
-
MOODLE_27_STABLE
-
MOODLE_26_STABLE, MOODLE_27_STABLE
With this improvement it will be possible to use one "background" type step to set view or entry template in a view, instead of the long way via the view edit form.
These steps will also work around a current limitation of the standard step
I set the field "FIELDNAME" to "VALUE"
|
which cannot handle values with multiple lines (because it uses javascript to set the editor content). The steps will use Py String for value and will perform low level update of the template, that is, via the dataformview api.
The syntax of the new steps will be
And view "VIEWNAME" in dataform "DATAFORMID" has the following view template:
|
"""
|
first line of template content
|
...
|
last line of template content
|
"""
|
and
And view "VIEWNAME" in dataform "DATAFORMID" has the following entry template:
|
"""
|
first line of template content
|
...
|
last line of template content
|
"""
|