Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing template variables from function tag/modifier #325

Open
char101 opened this issue Apr 15, 2021 · 1 comment
Open

Accessing template variables from function tag/modifier #325

char101 opened this issue Apr 15, 2021 · 1 comment

Comments

@char101
Copy link

char101 commented Apr 15, 2021

I would like to have this new functionality

Hi,

Is it possible to access template variables from a function (non compiler) tag/modifier?

For example, I want to automatically display a field error from $errors variables assigned to the template. I could create a tag {error "field"} which will automatically display the field error if it exists in the $errors variable. But I can't find the way to access the assigned variables.

@bzick
Copy link
Member

bzick commented Apr 6, 2024

you can pass variable to tag/modifier via arguments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants