I have created some boxes plugins, but how do I make some of my boxes use the custom plugins instead of the default one? Is there currently no UI for that or am i missing something?

Comments

jmiccolis’s picture

Status: Active » Postponed (maintainer needs more info)

I'm assuming that you're asking to to implement a custom boxes plugin? Boxes leverages the ctools plugin infrastructure, so you'll need to implement hook_ctools_plugin_api() to tell ctools that you're going to provide a boxes plugin, and then hook_boxes_plugins() to actually register your plugin. The plugin itself is implemented as a class, and you should probably extend the boxes_box class.

It's this helpful?

darrenmothersele’s picture

I think the question is how do you then create a box of that type, once you've implemented it? You have to clear the menu router cache and then there's a tab under the blocks admin page to 'Add your box type'.

yhahn’s picture

Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.