ComfortableMexicanSofa is a powerful Ruby on Rails 5.2+ CMS (Content Management System) Engine
MIT License
Bot releases are visible (Hide)
Published by GBH over 5 years ago
Quick fix so proper form builder is used.
Published by GBH over 5 years ago
sass-rails
to sassc-rails
Note that existing Files might get their labels blanked-out. There was a label
method that would output filename if label is blank. Now label is always set during creation.
Published by GBH over 6 years ago
Published by GBH over 6 years ago
cms_snippet_render
and cms_fragment_render
not working with some tags.Published by GBH over 6 years ago
Content tags have support for nested hashes and arrays. For example:
{{ cms:partial "path/to/partial", foo: { a: b, c: d }, bar: [a, b, c] }}
Will translate to:
<%= render partial: "path/to/partial", locals: {"foo" => {"a" => "b", "c" => "d"}, "bar" => ["a", "b", "c"] } %>
Keep in mind that hash keys and values are always going to be strings
Also fixed how AS variants are using image magic options. See https://github.com/rails/rails/issues/31518 for details
Published by GBH over 6 years ago
This release is brought you by @glebm
New tag: page_file_link
It's similar to file_link
tag that you can link previously uploaded files into content somewhere. Difference is that this tag links files uploaded for a specific page. Basically, you set up a bucket with all the files and then you can selectively drop them into the content.
Example set up:
On Layout content have {{ cms:files attachments, render: false }}
tag defined.
During page creation populate that field with files and save. Now, during editing you may drag-and-drop previously uploaded files. See PR for more details: https://github.com/comfy/comfortable-mexican-sofa/pull/799
Ability to drag and drop is also extended to files uploaded site-wide.
See it in action:
coffee-rails
is dropped.Published by GBH over 6 years ago
/app/assets/{stylesheets|javascripts}/comfy/vendor/bootstrap
Published by GBH almost 7 years ago
{{ cms:tag_class params}}
.{{ cms:page:content:rich_text }}
now looks like {{ cms:wysiwyg content }}
{{ cms:partial "path/to/partial", local_var_a: "a,b,c", local_var_b: 123 }}
{{cms:block}} some content {{cms:end}}
. No tags that use this just yet.Comfy::Cms::Block
to Comfy::Cms::Fragment
.Published by GBH almost 8 years ago
Published by GBH over 9 years ago
Published by GBH over 9 years ago
Published by GBH over 9 years ago
Published by GBH almost 10 years ago
Published by GBH almost 10 years ago
plupload
so there's a new dependency.rails g cms
or plug Mime::Type.register 'text/plupload', :plupload
into your config/initializers/mime_types.rb
rails g comfy:cms:views
- copy all cms view templates to your application. Now you can change if you want wysiwyg or normal text for snippets yourself. It's back to plain text by default, by the way.rails g comfy:cms:controllers
- copy all cms controllers to your application.rails g comfy:cms:models
- copy all cms models to your application.rails g comfy:cms:assets
- copy all cms js, css and image files to your application.categories/pages.yml
first.config.admin_authorization = 'ComfyAdminAuthorization'
. Just create a module with authorize
method and put all your logic there. You'll have access to params and instance variables relevant to a given controller. For example:module ComfyAdminAuthorization
def authorize
if params[:controller] == 'comfy/admin/cms/layouts' && !current_user.is_admin?
flash[:error] = "Bug off, only admins can change layouts"
redirect_to admin_root_path
end
end
end
Published by GBH about 10 years ago
jquery-ui-rails
v5 work without crashingPublished by GBH over 10 years ago
Published by GBH over 10 years ago
tinymce-rails
is a new dependency. You still have option of switching it out for whatever you want.bootstrap-sass
is a new dependency.formatted_form
is out and bootstrap_form
is in. See https://github.com/bootstrap-ruby/rails-bootstrap-forms on how to use it.Comfy::
namespace. Models, controllers and even routes. Where you had Cms::Page
now you have Comfy::Cms::Page
Comfy::Admin::Cms::BaseController
and Comfy::Cms::BaseController
cms_snippet_content
, cms_snippet_render
, cms_block_content
, cms_block_content_render
and cms_block_render
. See here for more details: https://github.com/comfy/comfortable-mexican-sofa/blob/master/lib/comfortable_mexican_sofa/view_methods.rb
cms_manageable
. See how you can make your own models act as cms pages: https://github.com/comfy/comfortable-mexican-sofa/pull/409
Published by GBH over 10 years ago
{{cms:field:some_label:boolean}}
tagit
locale and fixed up pluralization code.Published by GBH almost 11 years ago