Global content for entire collection with placeholders #11237
-
I have a collection for landingpages and a mounted entry for that collection. The mounted entry contains the global content inside a replicator page builder. The collection entries contain several fields to replace content in specific areas (text, images and sometimes arrays of data). Additionally, the title of a collection entry is often used in the content of the mounted entry's page builder fields. I've already created a template for the collection that loads the page builder content from the mounted entry:
My plan is to use But I have some concerns:
I have this same setup in WordPress, Elementor has a feature to load dynamic data into a field. Pretty neat, the HTML output is garbage though. Maybe there is an alternative way of doing so with Antlers in a field (I have noticed the option to enable that). But there is also a warning about security and performance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
I don't understand the "replacing" bit, can you please show an example of what you mean? Pseudo-code is fine. |
Beta Was this translation helpful? Give feedback.
Statamic uses "the cascade" for data, if it's local (i.e. the current page data) it'll use that, if it's in the cascade (like the
get_content
stuff) it'll use that.Override what you want.