Hi,
What I'd like is to prepopulate a certain field of a node with a dynamic
value.
e.g. I've added an 'author' field to the attachment builder and I'd like
to have the current user's username prepopulated in the 'author' field
when starting the editwizard for a new attachment. The user can then
decide to clear this field and/or modify the field with another value.
I've looked at get-, set- and commitprocessors, but it seems that the
getprocessor I've written only is fired on an existing attachment. I
somehow can't get it to work to return the current username with a new
attachment.
I've also looked putting this logic in the editwizard, but seems to me
only _hardcoded_ values can be prepopulated in a field, instead of a
variabele cloud.user.identifier or something. I also can't pass the
username as a variabele since the attachment wizard is only called from
within other wizards.
I'm using 1.8.4. Has someone developed a solution for this issue: either
by get/setprocessors or editwizards themselves or something else?
Regards,
Ted
_______________________________________________
Developers mailing list
Developers@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/developers