Forums / Developer / parameter for attribute_edit_gui
Sebastian Sprenger
Wednesday 24 March 2004 11:10:26 pm
Hi! Can anybody explain how to send parameter with attribute_edit_gui? Documentation says: {attribute_edit_gui attribute=$attribute [ parameter=$value [ ... ] ]}
Must $value be a hash? How to define the parameter-name?
AND: How can I read the sent attribute in the corresponding edit-template?
Thanks, Sebastian
Wednesday 24 March 2004 11:22:20 pm
OK, I just got it by myself:
1. $value must be a hash, e.g.: {let value=hash('test',6)} ... 2. Now you can send it as attribute: {attribute_edit_gui attribute=$attribute parameter=$value}
3. In the corresponding edit-template you get the value using: test = {$parameter.test}