v2.0.0
Spotlight v2.0.0 adds a new major feature, the ability for curators and exhibit administrators to create multi-lingual exhibits.
Upgrade guide
Install new database migrations
$ bundle exec rake spotlight:install:migrations
Migrate Page content to provide a locale in a scope
After updating to Spotlight v2.0.0 and running the new migrations, update the FriendlyId::Slugs
of your pages by running:
$ bundle exec rake spotlight:migrate_pages_language
Move spotlight_initializer.rb
to using Spotlight::UploadFieldConfig
Spotlight v2.0.0 allows you to configure upload fields using a new class Spotlight::UploadFieldConfig
. You should use a separate config for each Solr field.
Known Issues / Potential Gotchas
Switching locales between pages in an exhibit whose translated pages are in an incomplete created/published status will raise the same redirect/error (unauthorized or not found) that would normally be returned for any page. See more conversation/status in #2052.