The user's position can be stored in their user profile.
Use data in a document field
For example, if you wanted to automatically get the job title of the author of a document in a field, you could do so using the following dynamic expression:
fil.author.job_title
In case you want to extract the job title of another user that is not the author of the document, you must pass the User object you want and in the same way as before access its job_title: <user>.job_title
The job title will be filled in the field when you run the data extraction.
Print the charge in templates
To use this value in a template, you can either store it in a field and label it like any other field, or put the following label inside the template:
{{ fil.author.job_title }}
Comments
0 comments
Please sign in to leave a comment.