Bellow you can find the answers to some of the problems encountered when using SkylineCMS.
If your problem is not listed here, then please check out or newsgroup or irc channel.
Bellow you can find the answers to some of the problems encountered when using SkylineCMS.
If your problem is not listed here, then please check out or newsgroup or irc channel.
When you click on the Settings tab you get the error
NoMethodError (undefined method `page_names' for nil:NilClass):
vendor/plugins/skyline/app/controllers/skyline/settings_controller.rb:10:in `index'
vendor/plugins/skyline/app/controllers/skyline/application_controller.rb:189:in `perform_action'
The problem is that no settings are not defined yet.
Create the model settings.rb and copy the following code:
class Settings < ActiveRecord::Base
include Skyline::Settings
include Skyline::ContentItem
referable_serialized_content :my_special_page
page :content_pages, :title => "Content pages" do |p|
p.field :my_special_page_id do |f|
f.editor = :page_browser
f.label = ["Special page",""]
end
end
end
The "Content library" tab only shows up when you have defined content elements in Skyline.
Follow the guide: How to create content elements