ComfortableMexicanSofa is a powerful Ruby on Rails 5.2+ CMS (Content Management System) Engine
Quick fix so proper form builder is used.
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.
cms_snippet_render
and cms_fragment_render
not working with some tags.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
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./app/assets/{stylesheets|javascripts}/comfy/vendor/bootstrap
{{ 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
.