Skip to content

Releases: comfy/comfortable-mexican-sofa

1.11.0

05 Nov 16:45
@GBH GBH
Compare
Choose a tag to compare
  • Routing is changed. Instead of ComfortableMexicanSofa::Routing.admin you have to use comfy_route :cms_admin. This new format allows wrapping all cms routes in your custom constraints or things like namespaces (although be careful with those)
  • There are a number of form fields that have their data attribute changed to include cms prefix. So if before you had data-rich-text, now it's data-cms-rich-text. There was a conflict with datetime picker that required this change.

1.10.0

22 Oct 21:01
@GBH GBH
Compare
Choose a tag to compare
  • Restructured internal folder structure and routes. Shouldn't affect your app unless you done some monkey patching. Should be very easy to fix if something's broken.
  • Codemirror assets are managed via a gem. No longer frozen inside cms assets.
  • Kaminari is shipped with the gem in case you need to do some pagination.
  • Your public controllers can inherit from Cms::BaseController if you want to automatically load @cms_site
  • Similarly, admin base controller is now named Admin::Cms::BaseController
  • You can quickly generate admin area scaffold. For example: rails g comfy:scaffold User email:string full_name:string. This will create a model, controller, views, routes and even tests.
  • Now it's possible to use HAML instead of HTML in cms fixtures. This works for layouts, pages and snippets. Leave .html file extension alone, just write content in HAML

1.9.3

08 Oct 15:29
@GBH GBH
Compare
Choose a tag to compare
  • Caching of page content changed. Now page.content is created on access. No need to recompute it for all pages when related content changes. This change should speed things up especially on sites with tons of content.
  • You don't need to use ViewHooks to add partials to admin views. I added a pile of partials that you can override: list of partials In order to see what's available and where enable this setting: config.reveal_cms_partials
  • A pile of small fixes

1.9.2

08 Oct 15:33
@GBH GBH
Compare
Choose a tag to compare
  • Can change controller that cms admin controller inherits from. Default is ApplicationController but if you don't want before_filters kicking in you may create your own controller and use that. See: config.base_controller inside initializer.

1.9.0 - Rails 4 Release

10 Jul 17:47
@GBH GBH
Compare
Choose a tag to compare
  • No functional changes from last 1.8 version. Making everything work in Rails 4 environment.
  • As of this version Rails 3 is no longer supported. 1.8.* might get backported updates if requested.

1.8.4 - Fixtures rework

10 Jul 03:00
@GBH GBH
Compare
Choose a tag to compare

CMS Fixtures import/export functionality is completely rewritten. Notable (and potentially breaking) changes:

  • Page attributes are stored in a attributes.yml file instead of _{page_slug}.yml
  • Same applies to layouts and snippets.
  • Page fixtures properly assign target_page attribute
  • It's possible to define categories for pages and snippets in the attributes.yml
  • Categories can be imported/exported. Even the ones that are not currently used.
  • Files can be imported/exported as well.
  • Rake task will 'force' import everything. Meaning it's not going to be checking for freshness of the data.
  • Files require to have unique filenames for a given Site.

See example fixture files for structure reference. Run rails g comfy:cms to update them.

1.8.0

24 Oct 15:49
@GBH GBH
Compare
Choose a tag to compare
  • Routing is now explicit. No more hoping that the globbing content serving route attaches itself at the bottom. Now you have to specify where routes go. All you need to do it either run rails g comfy:cms and move newly created routes (they'll probably end up at the top of the file), or manually paste this at the bottom of your routes.rb: ComfortableMexicanSofa::Routing.content :path => '/', :sitemap => false. You should also add this, if you want to access admin area: ComfortableMexicanSofa::Routing.admin :path => '/cms-admin'
  • Added extra manifests for easy admin area customization. If you want to change css within admin area, simply create app/assets/stylesheets/comfortable_mexican_sofa/admin/application.css (.sass/.scss/.whatever). For javascript, same idea: app/assets/javascripts/comfortable_mexican_sofa/admin/application.js (.coffee?).

1.7.0

24 Oct 15:49
@GBH GBH
Compare
Choose a tag to compare
  • Admin interface is styled using Bootstrap 2.3.0
  • Forms are handled with formatted_form
  • Upgraded to CodeMirror 3
  • Bumped up Paperclip version requirement to 3.4.0. Default config is fixed now.
  • Replaced elRTE wysiwyg editor with wysihtml5
  • Due to wysiwyg editor replacement file insertion and management is temporarily missing.
  • Added support for Markdown. You can define markdown fields like this: {{ cms:page:content:markdown }}
  • Added support for Ruby 2.0.0
  • Dropped support for Ruby 1.8.7
  • Dropped support for Rails 3.0 (upgrade to 3.1 or 3.2)
  • Introduced a few common dependencies. HAML/SASS replace HTML/CSS. CoffeeScript will replace JS scripts.
  • No new migrations to worry about.

1.6.26

24 Oct 15:59
@GBH GBH
Compare
Choose a tag to compare
  • Fixture importing/exporting uses site identifiers instead of hostnames. You may need to adjust folder names.

1.6.11

24 Oct 16:00
@GBH GBH
Compare
Choose a tag to compare
  • Discovered a crappy paperclip default that now corrected with config.upload_file_options. Now default attachment url is set to /system/:class/:id/:attachment/:style/:filename instead of /system/:attachment/:id/:style/:filename. This means you'll need to move directories to adjust for this change. Not a problem if you never uploaded any files through CMS, or have your own override in place.