Tanks a lot for your plugin, seems the perfect tool for a user to select pages in the panel too !
I m strugling to get it working as needed. Does someone know how can i retreive the link + the title of the page from the call with the multiselect in my template ?
As suggested, for the moment I m retreiving pages in my template following the checkbox model :
For the moment, i m just retreiving the URL as a value from the multiselect…But I really how no clue on how to insert a link to each page and the title of the page with the multiselect field…
Well, I guess it s actually not possible as pages are retreived as checkbox values.
Or i m I wrong ?
If anyone has a clue, it would be really appreciated !
I just released an update of the Multiselect field and bumped up the version number to 2.0.0. As the version number suggests, this update changes a few things that can break current setups. You can find it at https://github.com/distantnative/field-multiselect
Main changes are full keyboard support and that I restructured the field to be delivered as it plugin (which requires Kirby 2.3 - currently in beta). It goes into site/plugins/field-multiselect/. The plugin then registers the field. With the new registry in Kirby 2.3, I believe all third-party elements like fields, snippets, blueprints etc. should also be delivered wrapped as a plugin. This enables us to keep only custom elements that are rather specific to the project in site/fields, site/tags etc.
Changlog
Requires Kirby 2.3.0
Renamed to field-multiselect (required renaming repository)
Full keyboard support added (up & down arrows)
Rewritten as plugin that registers the multiselect field
Yes, that may be. You should always use the latest beta anyway, because that’s the latest state that will become the final version eventually. Testing with it helps us to find additional bugs if you report them.
I want to use it as classic select, because I have long options list and I need search functionality.
Is it possible restrict number of selected items?
Hmm… under Kirby2.5.5 i just got this with your demo blueprint:
Exception
The field class is missing for: field-multiselectfield at
if(!class_exists($classname)) {
throw new Exception('The field class is missing for: ' . $classname);
}
EDIT:
WHOOOPS… my fault: i’ve copied it to “fields” and not to “plugins”. works now.
Thx for the plugin!