FUEL CMS 0.9.3 Released!
We are happy to announce that FUEL CMS 0.9.3 has been released on GitHub. This release includes several major additions including CKEditor™ support, precedence sorting, linking fields and more.
CKEditor™ + markItUp! = Super Editor
Since FUEL CMS went open-source, one of the biggest requests has been to include a WYSIWYG editor (What You See Is What You Get). With previous versions of FUEL CMS, markItUp! was used for text fields that needed HTML content. We are big fans of markItUp! and think it's a nice way to cleanly insert HTML into your pages because what you see truly IS what you get. However, markItUp! is not a true WYSIWYG editor and actually displays the HTML code you are inserting which can be a little intimidating for users not familiar with HTML. In the past, to get around this we've used the markdown or auto_typography functions so the client does not need to worry about inserting HTML into their pages. Sometimes though, that is not enough and what is needed is a true WYSIWYG editor.
With FUEL CMS 0.9.3 we've fixed this problem by integrating the popular WYSIWYG CKEditor™. Not only can you set which of the two editors you want to use at both a global and per field basis, but anytime you view source with a field using CKEditor™, it switches you to markItUp!... you get the best of both worlds.
With this improvement comes two new parameters that can be set in your fuel/application/config/MY_fuel.php file:
- $config['text_editor']: options are 'markitup' OR 'ckeditor'. The default is markitup
- $config['ck_editor_settings']: allows you to set CKEditor™ config values
Additionally, you can set the special trigger CSS class wysiwyg on your textarea form fields which will change the field to use CKEditor™ (if your FUEL configuration is set to markItUp! by default).
Remember, the default setting for a $config['text_editor'] at this time is markitup. To use CKEditor™ you must change the $config['text_editor'] value in fuel/application/config/MY_fuel.php to ckeditor.
If you are experienced with creating CKEditor plugins and would like to contribute, we have a few plugin ideas in mind that we could use some help on so please if you are interested.
Have you ever needed to create a field to capture the order you want to sort your data? FUEL 0.9.3 introduces a feature we call "precedence sorting" which makes it easy for you to rearrange your data into the order you want. Simply create a field called precedence, and you'll now see a new Rearrange button in your module's list view. Click that button and your list view can now be rearranged by dragging the rows into the order you want. This eliminates the need of clicking into each record to edit. To change the name of the column used for storing the sorting information, you can set the precedence_col value in your module's config.
... public $linked_fields = array('slug' => array('name' => 'url_title')); //OR public $linked_fields = array('slug' => 'name');
Popup Page Viewing
To speed up page viewing from the CMS, we've implemented a popup window that will display your page preview instead of taking you to another page. Returning back to the admin is now just a matter of closing the popup window, keeping you in your current editing state.
Uploading of Views and Blocks
The Pages and Blocks modules have always allowed you to upload content. However, to do so required you to be editing the page or block and they needed a corresponding view file named a certain way to trigger the upload notification. Now you can upload your files without needing them to follow a specific naming convention and you can do it from either the list or item view.
Along with this release, we have updated the demo site used in the blog tutorials. It is under the branch "demo" on GitHub and we will be keeping it up to date alongside the master branch. This will eventually replace the 0.91 branch currently on GitHub.
There are a few other updates we'll mention below:
- Updated CodeIgniter 2.0 to a newer Reactor version.
- Dwoo Upgraded to the latest release from GitHub.
- Updated to jQuery 1.5.1
- A few improvements to the Tester module including the addition of a page_contains() method and the addition of a few tests
It is recommended that you use Git to do any updates. For general instructions on how to update FUEL CMS with your projects, follow this link to a forum thread on the subject.
The last release, v.0.9.2, was a major step towards localization. When it was released, we asked the community to help with translations. Since then, a couple community members have answered the call and contributed language files for both Czech (Lukas Sojka) and Spanish (Jose Manuel Lucas). We love to see this kind of help so thanks guys. If anyone else is interested in helping with localization efforts, you can find the language files on GitHub.
Need Help or Found a Bug?
As always, if you are have a question or suggestion about FUEL CMS, stop by our forums or pop-in to the #fuelcms IRC channel. Lastly, if you've found a bug, please submit a ticket on GitHub. Happy Coding!