Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

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

Started by Chrish Dunne 8 years ago · 0 replies · 683 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 Andy Miller, 7 days ago
0 117 7 days ago
General · by lynbor, 1 month ago
3 445 2 weeks ago
General · by lynbor, 3 weeks ago
7 564 2 weeks ago
General · by Harry, 2 weeks ago
0 164 2 weeks ago
General · by Old Man Umby, 1 month ago
2 310 4 weeks ago