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 · 543 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 Hanns Mattes, 13 hours ago
1 16 6 hours ago
General · by Andy Miller, 6 hours ago
0 16 6 hours ago
General · by Jerry Hunt, 5 days ago
2 137 1 day ago
General · by pamtbaau, 2 days ago
1 94 2 days ago
General · by Andy Miller, 2 days ago
0 78 2 days ago