Changes between Version 30 and Version 31 of S3/S3ReusableField
- Timestamp:
- 06/12/14 11:57:22 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
S3/S3ReusableField
v30 v31 68 68 == Multiple Widgets == 69 69 70 Besides the normal "widget" attribute , it is also possible to specify multiple possible widget alternatives in the S3ReusableField, and then apply them in the instances by name.70 Besides the normal "widget" attribute to specify a form widget for the resuable field, it is also possible to specify multiple possible widget alternatives, and then apply them in the instances by name. 71 71 72 To do so, use the "widget'''s'''" (plural ) attribute.72 To do so, use the "widget'''s'''" (plural!) attribute. 73 73 74 74 Example: … … 90 90 }}} 91 91 92 Without override or explicit choice, the "default" widget would be used in Field instances. 92 Without override or explicit choice, the "default" widget would be used in Field instances. 93 93 94 ''NB The "widget" attribute can co-exist with a "widgets" attribute, and where it does, it overrides the "default" alternative. However, that is confusing and should be avoided.''94 ''NB: one should avoid having both "widget" and "widgets" in the same S3ReusableField. However, where both are present, "widget" overrides the "default" alternative in "widgets".'' 95 95 96 96 To choose a widget by name: