We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a foreach on my component and I need to have the ability to conditionally add some markup based in whether it exists in the json file.
So if json object exists publish out whatever.
I've attached a screenshot as I can't add the code.
Adding HTML.Esists doesn't work in this instance.
HTML.Esists
The text was updated successfully, but these errors were encountered:
Workaround is to use
ModelHelper.Exists(item, "textGroupsCta")
Sorry, something went wrong.
Improvement would be to add an overload to Html.Exists to support passing a model for consistency.
rsleggett
No branches or pull requests
I have a foreach on my component and I need to have the ability to conditionally add some markup based in whether it exists in the json file.
So if json object exists publish out whatever.
I've attached a screenshot as I can't add the code.
Adding
HTML.Esists
doesn't work in this instance.The text was updated successfully, but these errors were encountered: