Skip to content
Grav 2.0 is officially stable. Read the announcement →
General

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

Started by Chrish Dunne 8 years ago · 0 replies · 621 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 jean-louis67, 3 weeks ago
2 312 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 312 3 weeks ago
General · by Veehem, 4 weeks ago
0 264 4 weeks ago
General · by milkboy, 4 weeks ago
0 267 4 weeks ago
General · by ian russell, 1 month ago
2 337 1 month ago