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

Document how to pass HTML value using variable instead of tag attribute #5

Open
eliot-akira opened this issue Nov 12, 2024 · 0 comments

Comments

@eliot-akira
Copy link
Contributor

From:

To be documented:

  • Limitation of passing HTML in a tag attribute using the {} syntax, which only supports simple values.
  • Workaround using variable

Example:

Use a variable to pass HTML content to a template.

<Set modal_content>
  <Field acf_oembed=best_industry_focus_video />
</Set>

<Template name=modal />

And to get the value in the template:

<Get modal_content />

This way, the HTML content doesn't need to go through a tag attribute.

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

1 participant