CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Load extras.css from configured custom template directory
Pages: [1]

Author Topic: Load extras.css from configured custom template directory  (Read 2069 times)

websitesRevolt

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 1
Load extras.css from configured custom template directory
March 12, 2011, 10:06:18 am
The idea of extras.css is great, but wouldn't it make more sense if it were loaded from one of the custom directories so it wasn't overwritten every update? Could simply add a checkbox under the Custom Template directory settings, "Load extras.css from this directory as well?". Simple suggestion and almost not worth griping about but it always sucks to have extra steps when doing a simple update, and separating this from the core Civi css would fall more in line with the manner in which Civi handles almost all other customizations.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Load extras.css from configured custom template directory
March 12, 2011, 07:30:27 pm

would be great if you can investigate and submit a patch that does the needful

note that css / js do not follow the normal "path" convention that php/smarty follow, so might not be a trivial issue

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Load extras.css from configured custom template directory
March 14, 2011, 04:22:18 pm
Might make sense and be easier to load an "extra" css file via an additional Resource URL setting (civicrm/admin/setting/url). We already support loading a custom copy of civicrm.css there. Defining an "extra / additional" css file there would provide an easy way to add stuff w/o needing to modify the entire civicrm.css file. We wouldn't care what the name of the file is. Or, you could potentially define a directory and the code could grab any .css file(s) that are present - so not limiting to 1 or N additional css files.

(Patch welcome if this idea also makes sense to you.)

Side-note: Some folks are defining additional css styles for Civi in their theme's css file(s). At least in Drupal, they are loaded on Civi pages, so this works pretty well (or at least that's what I've heard).
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Load extras.css from configured custom template directory

This forum was archived on 2017-11-26.