Using prefixes in partials #4551
Unanswered
SenseAndImage
asked this question in
Q&A
Replies: 2 comments
-
I don't really understand what you're trying to do, can we see some data (the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Shorted to be relevant: debug_fieldset.md
Debug page
debug_fieldset.antlers.html
button.antlers.html
the first two lines of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I want to use a linked fieldset multiple times in a replicator set and use prefixes to differentiate between them. In the antlers template, i use partials to render the content of the linked fieldsets.
However, i am struggling a bit with the use of prefixes here, as i can't find a way to combine the prefix with the regular fieldnames.
For Example:
fieldset is prefixed with:
right_
the prefix gets passed to the partial with
{{ partial:x prefix="right_" }}
//i know, horrible way, since this breaks if the prefix is changed in backend, but haven't found a better way yet.in the partial, i want to use something along the lines of
{{ {prefix} + fieldname }}
to access{{ right_fieldname }}
, but nothing i tried is workingis there something i am missing/doing wrong or is such a functionality currently not possible? Any other way to differentiate between the multiple instances of the linked fieldset and accessing the correct data would be fine aswell.
Beta Was this translation helpful? Give feedback.
All reactions