Skip to content

add extended attributes for objects associated with struct data entries : eg email addr for the user in an struct user field #728

@cjohnsonuk

Description

@cjohnsonuk

Feature Description

I'm trying to access the email address of a user[s] based on the username in a struct field where the field type is user.

The ultimate aim is to be able to use the email address of a user identified in the struct data of a page in the action mail line of a bureaucracy form definition: e.g. it might take the formaction mail {{schemaName.username.email}}

When a form on a page is completed I'd like to send the resulting information / notification to a person identified in the pages struct data by email.

If its not already possible to do this then one option would be to extend the syntax of the struct value output from {{schema.fieldname}} to {{schema.fieldname.extendedProperty}} to allow access to the $USERINFO name/mail/grps or $INFO values eg {{documentUsers.author.mail}}

or set an email field in the schema to automatically populate with the email address of a linked user field in the same schema so you could use {{documentUsers.authorEMail}}

Bureaucracy is one of the wider used forms and as struct also seems to be a defacto structured data plugin for Dokuwiki now it would seem that a feature like this could be used widely.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions