Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

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

Started by Chrish Dunne 8 years ago · 0 replies · 647 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 jeremycherfas, 1 week ago
5 197 6 hours ago
General · by lynbor, 6 days ago
2 130 3 days ago
General · by Old Man Umby, 1 week ago
1 104 1 week ago
General · by Sebastian, 2 weeks ago
1 128 2 weeks ago
General · by Andy Miller, 3 weeks ago
0 251 3 weeks ago