No auto.css?

Permalink
Hello, today I really tried to find if there is a way to add auto.css when adding or editing block,
only one solution was this:

$this->addHeaderItem($html->css("auto.js"));


But the problem is that this function tries to find auto.css in local_dir/concrete/css but that is not what I want. I want to add auto.css from my block directory. Is there any way to do this?

NamelessHero
 
NamelessHero replied on at Permalink Reply
NamelessHero
What is the best way to include css to my edit.php file?
mhawke replied on at Permalink Reply
mhawke
If there's not too much CSS then I just add a < style > < /style > section to the top of my edit.php file and stick the css in there.
mhawke replied on at Permalink Reply
mhawke
Here's a more detailed way to make your add and edit dialogs grab custom css

http://www.concrete5.org/community/forums/customizing_c5/view-css-n...
NamelessHero replied on at Permalink Reply
NamelessHero
Yeah, right now i did it in a similar way, i just added
<link rel="stylesheet" href="url_to_auto.css" />
But it would be much better if there was a way to add auto.css automatically (i wonder why didn't concrete developers made auto.css available), i want my code to be easily readable by other developers, that's why I'm looking for some better practices.