Open erikjanwestendorp opened 3 years ago
HI @erikjanwestendorp and thanks you for the great suggestion.
I've been having a little think about it and I wonder if maybe there could be a toggle for the data type that would turn on the stylesheet functionality. When checked, the additional file picker field would appear and the return value would be the relative path of the selected file rather than the label. From a content editors perspective there would be no changes.
That's probably going to be the "simplest" way to do with without introducing a breaking change. When I have some time i'll have a play, alternatively feel free to experiment yourself and submit a PR if you want.
Thanks
Is it an idea to further expand the datatype? For clients we often use a dropdown to give the content editor the option to choose a stylesheet (a theme). The way you do this is of course much more beautiful. Of course I can add the path to the stylesheet as the name of the theme, but it would be nice if I could add a stylesheet (path to) in addition to an image and a name.