This guide assumes that Fiona 7 has been installed and initialized in legacy mode. In the following, the relevant steps for adapting an existing application so that it uses Fiona 7 technology are described.
Editing content in place
The content stored as attribute values in the CMS can easily be made editable in place. For this, the fiona7_tag helper is available. This API corresponds to scrivito_tag, however, RailsConnector objects may be passed to it.
This makes it easy to replace RailsConnector code such as
<h1><%= display_field @obj, :title %></h1>
with Fiona 7 code:
<%= fiona7_tag(@obj, :title, :h1) %>
Editing navigations in place
Navigations and object lists can be created using fiona7_tag_list. This method displays a marker for creating a new page. Furthermore, the list can be sorted.
Initially, the list of available page types is empty. The available types can be defined using the valid_page_classes_beneath method of the global Obj class part of the Scrivito engine. So, create the “app/models/scrivito/obj.rb” file and add the following code to it: