Download the PHP package furbo/museum-plus-for-craft-cms without Composer
On this page you can find all versions of the php package furbo/museum-plus-for-craft-cms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download furbo/museum-plus-for-craft-cms
More information about furbo/museum-plus-for-craft-cms
Files in furbo/museum-plus-for-craft-cms
Package museum-plus-for-craft-cms
Short Description Allows to import MuseumsPlus Collection data to Craft CMS and publish data.
License proprietary
Informations about the package museum-plus-for-craft-cms
MuseumPlus for CraftCMS plugin for Craft CMS 4.x BRANCH craft-queue
Allows to import MuseumsPlus Collection data to Craft CMS and publish data.
Requirements
This plugin requires Craft CMS 4.7 or later and php 8.1 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require furbo/museum-plus-for-craft-cms
- In the Control Panel, go to Settings → Plugins and click the “Install” button for MuseumPlus for CraftCMS.
Overview
MuseumPlus for CraftCMS automatically imports items from one or more collections and makes them available to Craft.
Features
- Import M+ Data From Craft
- Import Assets like mages or other files to a Craft File System
- Use Craft Transforms to generate thumnails etc
- Add additional fields to items
- Show item details or filtered lists (filter by vocabulary, people, ...)
- Include items in craft fulltext search
- Automatically enrich data from AI (Google Gemini).
Configuration
Once the plugin is installed, you can configure it in the Craft Control Panel under Settings → MuseumPlus for CraftCMS. You will need to provide:
- the MuseumPlus classifier
- the hostname for the MuseumPlus API
- the MuseumPlus API username
- the MuseumPlus API password
After saving the settings you will see the list of collections you have access to: choose at least one collection and save the settings.
You should also choose the filesystem where the media will be stored: note that the two subfolders Items
and Multimedia
will be automatically created in the root of the filesystem.
You can specify which kind of files to import: the plugin will download the files and store them in the chosen filesystem.
In the settings there is a section to define the URI format and template to be used to show collection items in the frontend.
The shell command ./craft museum-plus-for-craft-cms/collection/update-items
will import the data from the selected collections.
We advise to set up a cron job to run this command regularly.
Usage
In the backend you will see a new section called "Collection" where you can see the imported collections and their items
Frontend example to display the items:
Frontend example to display a list of items filtered by vocabuilary ref:
Frontend example to display a single item:
Other methods available in twig:
Methods available in on a item:
Methods available in on a vocabulary entry:
The getRecords methods gives acces to the underlying record element. Here the methods that can be called on the records (items, people, objectgroups, vocabulary entries, literature, ownerships)
Get the items from objects like people, objectgroups, vocabulary entries, literature, ownerships
Events
The plugin throws a custom event after an item has been updated or created by the plugin.Custom modules can then listen to the event and add some custom functionality.
Add this code to the init() method of your custom module in craft cms.
Roadmap
- add geo refs via google to items
Brought to you by Furbo GmbH