calebgrove / select-a-structure

A select field for Kirby populated by a structure field.
43 stars 7 forks source link

Is it possible to have mutliple fields value for optionkey? #9

Open chesnel opened 6 years ago

chesnel commented 6 years ago

Hello! First of all thank you for this plugin. I've been looking for a while how to do this :) Everything is in the title. I have in my structure 3 fields (width, length, height) and I would like to know if there is way to display the three values with optionkey?

Thank you in advance for your answer :)

calebgrove commented 6 years ago

Hello @chesnel!

Not, not in the way it's built. However, if you have some knowledge of PHP, modifying it shouldn't be too difficult. See the foreach block at https://github.com/calebgrove/select-a-structure/blob/master/fields/selectastructure/selectastructure.php#L70