You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. The README for the SelectFieldFromApi ui:field mentions being able to use nunjucks templating {{ identity }}. Can someone show a working example of this?
I would like to provide a list of "ownershipEntityRefs" to the current user of the template. I want the user to see only a dropdown list of groups they're a member. Is this possible?
Below is the snippet from the README
"You also have the running user frontend context available for you in case there is a need to template the URL string based on the user. The underlying functionality uses nunjucks to handle templating and supports some filters that are available within the library. You can find the current user information from context using the template {{ identity }}.The items available within the identity object can be found from the Backstage GitHub repository."
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello. The README for the SelectFieldFromApi ui:field mentions being able to use nunjucks templating {{ identity }}. Can someone show a working example of this?
I would like to provide a list of "ownershipEntityRefs" to the current user of the template. I want the user to see only a dropdown list of groups they're a member. Is this possible?
Below is the snippet from the README
"You also have the running user frontend context available for you in case there is a need to template the URL string based on the user. The underlying functionality uses nunjucks to handle templating and supports some filters that are available within the library. You can find the current user information from context using the template {{ identity }}.The items available within the identity object can be found from the Backstage GitHub repository."
Beta Was this translation helpful? Give feedback.
All reactions