Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Proposal : Improved Theming
As of v3.3, theming is split between two sets of users, editors and developers, and its not possible to entirely manage the theme via the UI.
- Developers - Can store templates as VCS files or create/edit them via UI. Images, styles and js all have to be managed via the VCS.
- Editors - Can edit templates via the UI (which they like being able to do quite a bit).
- Creating templates/partials as VCS files is the quickest way to start a project locally, then push changes to staging/live servers. Creating a UI editable theme however requires: Creating a template in the UI, copying text in, saving then deleting the old file
- No Versioning - Templates managed via the UI have no versions
- Weak Editor - Templates managed via the UI have just a basic textarea to edit with.
Feature: Theme Structure/Creation
When a blank project is created, we should also create a 'theme' for that project, including the following directories:
We may have a configuration option to select the 'theme' for the site, which would allow for tags like 'image_tag', etc to automatically find content in the theme. Same for partials and templates.
Feature: Editable via UI
There should be a 'Design' tab in the CMS that allows editors to access a theme to make changes. This could be a single page that lists all assets in a single list, grouped by Type. For instance:
(Key [t] = Template icon, etc)
Editor (with proper permission) could click on any file to edit directly through the UI. We should consider embedding a tool like http://ace.ajax.org/ to improve the editor itself. All templates/assets/etc, will need to be versioned (Which they might be already???) for this to work. We might be able to have a single Model for all text based assets as well (Start from 'DynamicViews', with the following attributes:
- Type (Template, Partial, Stylesheet, etc)
- Format (Html, css)
- Handler (erb, haml)
Feature: UI Discovery of Themes
The CMS should be able to detect the presence of theme assets and should display them in the UI, even if they haven't been edited. Editors should be able to start modifying (after which time it should be stored in the database, and marked as a fork), or revert to the original version.
Feature: Editable via WebDAV
Starting with the "WebDAV":https://github.com/browsermedia/bcms_webdav module as a proof of concept, we should allow developers/staff to access the 'theme' directly, under a single folder called 'themes'. While rails splits app and public into two directories, this UI should merge them conceptually.
With a good FTP/WebDAV client, this would feel exactly like working directly on a server via FTP. Images can be uploaded in bulk, moved around, renamed, etc. All of which would be stored in the CMS as content.