Hi, I'm trying to make a simple way for my customer to make a spec sheet that is converted to an HTML5 definition list for a product page I made. The way I'm planning to achieve this is by adding a field in the admin panel that lets them create a key/value pair list that I can pull from in my product page template to generate the HTML. Is there a better approach to doing this than creating a plugin function?
Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Forms & Blueprints
Solved by Dzibus Allmighty View solution
last edited 10/03/18 by Apokaliptis
If I understood correctly, you are thinking of creating a plugin for key/value pair list.
What you need is https://learn.getgrav.org/forms/blueprints/fields-available#the-array-field.
Yes, it is this kind of feature I'm looking for. That should allow me to add the feature I'm looking for. Thank you very much!
P.s. Sorry if my question was confusing. I'm new to Grav and am still learning how it all works.
It wasn't confusing, I was just making sure I didn't miss something.
Glad I could help.
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 13 | 1140 | 4 months ago | ||
| 0 | 63 | 5 months ago | ||
| 9 | 138 | 6 months ago | ||
| 7 | 114 | 7 months ago | ||
| 10 | 132 | 7 months ago |