Super module, thanks!
When the formatter is used on a regular node view it makes sense to have the admin links show up.
But when I use the token in a rule to send an email, if the sending user has admin privileges the views links (edit, view, clone) are included in the email.
Not sure how to handle that.
Comments
Comment #1
itangalo commentedWhat tokens are you using to get the entire node view?
Comment #2
MBroberg commentedThank you for your response. This is a pass created for a parent and their children.
For the node view online, I am not using a token, I am using a field formatter that uses a view to format the display of the node reference field. It references each student's account and also shows certain details of their account (age, grade,...)
For each field in the email (sent by Rules) I am using a separate token. The token for the student records is [node:field_student_pass-default-array-view]
I have a token for a different field (parent) which is not an array, but which is also created by a view [pass_user:token-profile-user-profile_name].
It is a user reference field, and the field formatter shows profile fields for the parent instead of the username. It also shows admin links on the website but they do not appear in the email. That is why I thought it might be an array issue.
There is only one parent (user) per pass, but multiple students (nodes), and I have to show their names and certain record data.