Hi there,
I’m not sure if this is the propper forum area -- if not, please move this post, thanks.
As a developer and designer, I’m a friend of lazy shortcuts. Unfortunately, in modx the way to the appropriate CSS-file is a long one. During development processes or at least every time I have to switch between content, ressources or file-manger for a quick CSS-edit, I’m going slightly mad.
I fixed this problem for my installation by adding a shortcut into my ressource-menu in the modx/manager/frames/menu.php like this:
if($modx->hasPermission('file_manager')) {
// Manage-Files
$resourcemenu[] = '<li><a onclick="this.blur();" href="index.php?a=31" target="main">'.$_lang['manage_files'].'</a></li>';
// shortcut to templates
$resourcemenu[] = '<li><a onclick="this.blur();" href="index.php?a=31&mode=edit&path=UNIXPATH_TO_MODX_DIRECTORYs%2Fmodx%2Fassets%2Ftemplates%2Fdefault%2Fsite.css#file_editfile" target="main">Template-CSS</a></li>';
}
But this hack isn’t either elegant nor sustainable and not flexible anyway.
Is there a other solution around? I can’t find something in the forum or documentation.
Thanks for feedback,
rolf