Open xu-chris opened 9 years ago
Thanks for posting your blueprint, saves me some testing time for sure!
and yes, I was thinking about a native version as well but I think I'd have to modify the Base field which gets extended into everything else... That might require messing with the core.
Of course! I have full respect for your talent! I couldn't do it better ;-)
I've played a bit with the structure field. It's possible to simply extend it to rewrite it's functions. Just do this:
<?php
class EventlistField extends StructureField {
. . . do awesome stuff here . . .
}
I think the same is also possible with the base field. The worse thing about this is that you maybe have to copy some code out of the initial file to modify the function you want to. It's not the best solution but maybe @bastianallgeier may help you?
From what I know, that definitely sounds possible! I wish my understanding of OOPHP was better. If anyone wants to help out, I'm more than happy to look at pull requests.
The plugin is based on the checkbox field with a few slight modifications. The majority of the work is actually presentational code which is being done with with jQuery and CSS.
As I wrote I've played a bit around with your awesome tabs. I've produced this blueprint snippet:
I'm using the tabs to make my forms more easy and simple. As you can see I've produced multiple
startdate
andtitle
fields and it feels wrong to use your tab plugin like this.My naive version of this would be this:
(..and so on)
As you see I would use a field option called
tabs
to specify in which tab I would like to see this item. And with this you could specify one or multiple tabs with dashes. If you want to use two fields in the same tab content you have to write the same tab name into this field option.I don't know if this is possible but maybe this is something you would like to make. Of course the checkbox function of the tabs is still important. Maybe this could be combined with a invisible field which gets filled with the active field? Dunno..