Template system should be redone
The template system should allow to use any attributes in any other one. It should also be made available for any object, not just users.
Here's an idea: We could do a new schema with a multi-valuated templateValue field that would store values with 'ldapField:value' syntax. It would allow to use %attribute% even in fields that only allow numbers or such. We must use the @%attribute%@ syntax and not the @%attribute@ one, as said in #1711. We would need some way to guess what fields should be asked to the user when the template is used. My guess is : fields that are mandatory + fields that are used in other field values + some way to manually indicate we wanna ask a field, for instance @%askme%@ syntax.
(from redmine: issue id 2535, created on 2013-06-27, closed on 2014-03-17)
- Relations:
- copied_to #1887
- Changesets:
- Revision 95813d1b by Côme Chilliet on 2013-06-28T07:41:32.000Z:
Fixes: #2535 Adapted blocklistGeneric to new save
- Revision ef56a760 by Côme Chilliet on 2013-11-18T14:32:45.000Z:
Fixes: #2535 Adapted blocklistGeneric to new save
- Custom Fields:
- Bug in version: 1.0.5
- Uploads: