If you are maintaining an application that was migrated from the “cms.infopark.net” platform to Scrivito, please make sure your content maintenance procedures don’t depend on “Infopark Admin GUI 2.0”. After updating to version 0.60.0 and migrating the content, “Infopark Admin GUI 2.0” will no longer be available to your users. Applications that have always been running on Scrivito should be ignorant of the existence of the “Admin GUI 2.0”.
First, update the version of the scrivito
gem in your Gemfile
to 0.60.0 and run “bundle install”.
Next, your Ruby models representing object classes need to be extended to include the CMS attributes these models have. In previous SDK versions, object classes and their attributes were stored in the CMS, now they are defined in the application using Ruby models.
Fortunately, Scrivito already provides a Rake task which does this for you. So, please run:
bundle exec rake scrivito:migrate_attribute_definitions
This iterates over the classes in app/models
that inherit from Obj
or Widget
and determines the corresponding “ObjClass”es stored in the CMS.
If no object class exists for a model, the task prints a warning and suggests these solutions:
- You have an unused ruby class that can be removed.
- You have a model for which intentionally no
ObjClass
exists. It might be an intermediate abstract class, for example.
If the ObjClass
was found, the task inspects its attributes and generates the corresponding method calls in the Ruby model. If, for example, you have a “Page” model and a corresponding ObjClass
named “Page” that includes a “title” attribute of the string
type and a “body” attribute of the widget
type, then the task changes your model as follows: