Clear documentation for themes
Is your feature request related to a problem? Please describe. We need a clear design guide how to properly generate an own theme. Also only ONE place to save would be nice.
As stated in: https://support.chamilo.org/projects/chamilo-18/wiki/Design_conventions
CSS files¶ CSS files MUST be placed in their own folder in app/Resources/public/css/themes/{theme}/ and MUST be named by lowercase-only filenames (and obviously have the ".css" extension).
Now we have /main/inc/lib/template.lib.php: ` // Base CSS $css[] = api_get_cdn_path(api_get_path(WEB_CSS_PATH).'base.css');
if ($this->show_learnpath) {
$css[] = api_get_cdn_path(api_get_path(WEB_CSS_PATH).'scorm.css');
if (is_file(api_get_path(SYS_CSS_PATH).$this->themeDir.'learnpath.css')) {
$css[] = api_get_path(WEB_CSS_PATH).$this->themeDir.'learnpath.css';
}
}
$css[] = api_get_cdn_path(api_get_path(WEB_CSS_PATH).$this->themeDir.'default.css');
$css[] = api_get_cdn_path(ChamiloApi::getEditorBlockStylePath());
`
This goes to /web/css/ where the file gets copied...?
Looking at your link, it seems to be related to Chamilo 1.8 version, which is mainly the very beginning of Chamilo (no I'm wrong, it started at 1.6 if I remember well). Even you could have single or multiple database mention, which is not existing anymore since 1.9 branch. Nowadays, CSS files are duplicated into 2 locations: chamilo\web\css chamilo\app\Resources\public\css you need to have the CSS file in both locations to get it working. Obviously, you need to name a folder into CSS directory and put all the resources inside. I guess that one location will be removed, but so far this is the situation. I hope this helps.
Our official documentation is at https://docs.chamilo.org/en/ (end of menu for developers guide with section on themes, both CSS and TPL). Is that what you are looking for?
Hi 👋
I’d like to work on improving this documentation.
Please assign it to me. Thanks!