A plugin adds code to your Vanilla community. It can expose an API, fetch external data, or add a configurable widget. Themes and fragments give you more control over presentation.
This guide takes you from a local installation to a custom catalog widget. Each chapter builds on a small example. You can also use the theme and fragment chapters on their own.
Start here
Begin with Set up Vanilla and create your first plugin. You will connect a partner repository, enable an addon, and confirm that its code loads.
Then follow the example:
- Create an API endpoint.
- Call a third-party API.
- Create a configurable widget.
For presentation work, use Create a file-based theme or Create a plugin fragment.
Finish with Test and deploy your customization.
Choose the right tool
Use Widget Builder and a Data Source when you need a custom React interface backed by an external API. Vanilla stores the secret headers and proxies the requests. You can build this version in the Dashboard.
Use a Code Deploy plugin when you need PHP services, a custom endpoint, or a server-side response cache. The plugin version uses the same catalog contract as the Widget Builder version.
Use a fragment to change a supported widget's presentation. Use a theme for shared appearance and theme assets. A new widget does not require a new theme.
About the example
The example addon is named my-custom-catalog. Its PHP namespace is MyCustom\Catalog. These are tutorial names that you create.
The external URL, https://api.example.com/catalog, is a placeholder. It is not a running demo service. Replace it with a real public API that implements the example contract, or stub its responses in tests.
The example requires a signed-in member for its Code Deploy endpoint. Configure the Data Source for the same intended audience. This is an example access policy. Apply the permissions your own integration needs.