Alchemy is a user friendly and flexible Rails based CMS. In this guide you will learn about Alchemy's powerful features:
- The flexible content storing architecture
- The image processing magick
- The resources controller
AlchemyCMS is a Ruby on Rails engine. Read about engines in the Rails guides.
The Core modules
AlchemyCMS comes with six core modules:
- Library (Pictures & Attachments)
The core modules can be extended by own modules. A module should be a Rails engine that registers itself at Alchemy. Read more about creating own modules.
Unlike many other CMS's that store a whole page body with complete HTML markup, Alchemy only stores unformatted text, ids of objects (like attachments and pictures) and only some richtext content in the database. No HTML markup, no CSS, no styling, no layout. Just pure content.
You, the webdeveloper are in full control of the markup and styling. The editor just manages the content.
The render flow
Alchemy uses Rails' partials. It has no own templating language and no special files.
When Alchemy renders a typically Page, these files get usually rendered:
Alchemy comes with useful helpers that help render these partials. For further information please have a look into the Alchemy::PagesHelper documentation
Tips for page and content structure
When working with AlchemyCMS the very first thing you should do is identify the website´s layout different page types (called page layouts).
Every page which is structurally different to another, should have its own page layout. A page layout is a HTML template with specified properties. More about pages and their layouts »
After that you should identify fixed areas on the layout and define cells for sidebars, heroes and other groups of content. Cells render on page layouts and are acting as fixed containers for element groups. More about cells »
In any case you should split the layout into elements. That means grouping small parts of the websites content into reusable containers. Elements are rendered on page layouts or in cells and are the key component of Alchemy. More about elements »
An essence is the smallest part of content in Alchemy and represents a headline, an image, paragraphs and other values of content. More about essences »
Images are stored as master images in the picture library. The editor just assigns these images to elements you provide them. You also set the image rendering boundaries. The max width and heigth values, or even the size an image should be cropped to. Alchemy comes with a built-in image cropping tool, so that the editor can define the mask to be used.
With every page request Alchemy sends cache headers that are used by CDNs, proxies and your vistors browser to cache the page body.
Rails admin for your custom models
Alchemy can also be your Rails admin for your own custom models and controllers. When developing own modules for Alchemy, your controller can inherit from that resources controller (
Alchemy::Admin::ResourcesController) to get typical Rails CRUD methods.
The standard templates for the backend views are also rendered. They can be overwritten in your app, just use the expected filenames and variables.
Read more details about the resources controller in the module development guide.