Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Re-usable Content Types -- Advanced Custom Fields / Matrix

Started by Chrish Dunne 8 years ago · 0 replies · 746 views
8 years ago

If I wanted to add re-usable content types in the admin area, what's the best way to do this? For example, the design has a copy 'module' re-used throughout the entire site, which has various subtle changes. In my mind, I can reuse the code for this, but put in some logic to show/hide certain parts of it where necessary.

Where I'm getting confused is sometimes that copy field might be reused multiple times on the page. I want to give the client the ability to click [Copy +] and add in a copy field where they want. Kind of like how matrix fields work in Craft CMS or Advanced Custom Fields works in WordPress.

Any suggestions? 😃

Suggested topics

Topic Participants Replies Views Activity
General · by themetman, 1 day ago
2 41 19 hours ago
General · by Hanns Mattes, 1 week ago
0 122 1 week ago
General · by Karmalakas, 1 week ago
2 185 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 235 3 weeks ago
General · by Dima, 4 weeks ago
1 211 4 weeks ago