Submitted by BeatnikDude on Thu, 12/10/2009 - 16:01
We want to be able to, at least during development, allow an artist/designer/user to develop the theme CSS for a site as well as upload images for use with the CSS. Via a Zen sub theme with the CSS Injector and IMCE module we allow a designer or other user to theme a Drupal site without having other upload capabilities outside of Drupal. When the theming is done we wrap both the CSS from CSS injector and the images uploaded via IMCE into a final Zen sub theme.
The set up:
- Set up a new Zen sub theme
- Install and enable CSS Injector module Other >> CSS injector
- Install and enable IMCE module Other >> IMCE
- @ admin/user/roles add a new role: Site Editor
- @ admin/settings/imce
- under Directory creation tool @ settings/imce/subdirectory create a css directory. Do NOT call it "css".
- under Configuration profiles:
- set upload sizes etc
- edit “sample profile” rename it to "Site Editor Profile"
- set the Directories to css, all options and NO subdirectories
- under Role-profile assignments: Site Editor select Site Editor Profile
- @ admin/build/block
- added a block: an HTML link to IMCE for use w/ CSS Injector
- Role specific visibility settings: only Site Editor
- Page specific visibility settings: only on admin/settings/css_injector
- @ admin/user/permissions Edit permissions for Site Editor
- admin_menu module: access administration menu
- css_injector module: administer css injection
- node module: access content
- system module: access administration page
- system module: select different theme
After CSS styling is complete:
- integrate theme elements into the theme file
- move the the entire from css directory into your theme directory
- copy the css from the CSS Injector module into the theme style sheet
- disable CSS Injector module
- disable IMCE module (if not used elsewhere)
- remove Site Editor role from users
Notable Notes:
- Do not call your IMCE directories "css" or "html" as these are reserved names in the /sites/example-url/file directories. Not really documented, I found it by experience.
Comments
BeatnikDude
Wed, 12/09/2009 - 16:01
Permalink
ref: Internet Explorer 6 issues IE6
http://crownedup.com/using_Zen_theme_How-To_Drupal#comment-19
BeatnikDude
Thu, 02/10/2011 - 12:28
Permalink
CZI: CSS injector, Zen theme & IMCE
C.Z.I. is how I now refer to the CSS injector, Zen theme & IMCE setup to support the above use case.
BeatnikDude
Thu, 02/10/2011 - 13:31
Permalink
Testing C.Z.I. on Drupal 7
• Home » Administration » Appearance
- click "Install new theme": Zen
(you will need to look up the URL for install file)
- Enable: √ "Fixed layout" & √ "Wireframes"
• Home » Administration » Modules
- click "Install new theme": CSS Injector & IMCE
(you will need to look up the URLs for install files)
- Enable both
• @ admin/people/permissions/roles add a new role: "Site editor"
• @ admin/config/media/imce
- edit Sample profile
- change to "Site themer" and max resolution to 1600x1200
- under Directories remove the "u%uid" & add: imce_html & imce_css, √ "Delete"
• then back @ admin/config/media/imceRole-profile
- under "Role-profile assignments": set "Site editor" and "administrator" to "Site themer"
- under "COMMON SETTINGS": √ "Keep the existing file rejecting the new one"
• access CSS injector @: admin/config/development/css-injector
• access IMCE @: /imce
• @ admin/build/block
- added a block: an HTML link to IMCE for use w/ CSS Injector
- Region settings: Admin theme only in content area
- Pages: only on admin/settings/css_injector
- Roles: only Site Editor
• @ admin/people/permissions for "Site editor"
- CSS Injector: √ Administer CSS Injection
Add new comment