A simple help needed. view.css in a Block??

Permalink 1 user found helpful
I installed a block(file list block), that has no view.css file inside the block directory. Only view.php. In order to add some styles, I created a file view.css and put some styles inside. But how do I link this view.css to view.php/or controller.php. Which is the file exactly I should link view.css to?

thanx in advance

jeevanism
 
pmarques replied on at Permalink Reply
pmarques
Hello,

The files view.css and view.js are automagically included in view.php (not add.php nor edit.php, for those you'll have to use inline styles). You don't really need to link it manually.

If you still have doubts, there's a huge thread on this subject here:
http://www.concrete5.org/community/forums/customizing_c5/view-css-n...
jeevanism replied on at Permalink Reply
jeevanism
@pmarque

thank you a lot for the response.
pmarques replied on at Permalink Reply
pmarques
If you got it to work could you please mark as best answer so that the thread is closed?
JohntheFish replied on at Permalink Reply
JohntheFish
You can also use an on_page_view() handler in your block controller to add header items. If you only want them in edit mode, just test for edit mode before calling addHeaderItem().