BuildFire: Looking to add a folder option in the Manual Media Center

30 Views Asked by At

I'm looking to add folder functionality into the manual media center plugin. Ideally, when I click on an item that I've added into the media center, that item would then open up to a folder plugin. How should I combine the code of both plugins to accomplish this?

1

There are 1 best solutions below

0
On

Context:

You want to Fork the Media Center Manual repo https://github.com/BuildFire/pluginMediaCenterManualEntries

And functionality similar to the Folder Plugin https://github.com/BuildFire/folderPlugin


You would need two parts to change:

  1. The Control side of the plugin needs to configure which plugin to navigate to when an item is clicked. For you to accomplish this you will need to call the Plugin Instances Dialog using buildfire.pluginInstance.showDialog(options, callback)

Ref: https://github.com/BuildFire/sdk/wiki/Plugin-Instances#buildfireplugininstanceshowdialogoptions-callback

Once you have the save that object in the DataStore alongside the rest of your configuration data.

  1. On the Widget side of your plugin you then want to:

Note: You can see all api's mentioned above in action in the Folder Plugin. I'd spend time understanding that plugin first before making changes.

I hope this helps :)