Page list: adds view.css that cannot be found

Permalink
Starting to optimize a site I found that there is a stylesheet named view.css that cannot be found. Its only on pages with the page list.

<link rel="stylesheet" type="text/css" href="/new/blocks/page_list/view.css?v=57465e719f5c01dbdebac91285879926" />

Can't figure out where its being called from. I want to remove it, any idea where I can?

Dutchwave
 
jordanlev replied on at Permalink Reply
jordanlev
This is an annoying side-effect of having a custom template for a block. You cannot get rid of the call to view.css (well, you could but it would require hacking the core system I think) -- what I do instead is just copy YOURSITE/concrete/blocks/page_list/view.css to YOURSITE/blocks/page_list/view.css -- now at least it won't be a 404.

-Jordan
moth replied on at Permalink Reply
moth
This has been bugging me for a while.

Certain blocks require view.css - but if I choose to remove it, I don't simply want to load an empty file needlessly.

Is there a more elegant way to remove it?
jordanlev replied on at Permalink Reply
jordanlev
I think if you remove the view.css file from the original block, that will prevent C5 from looking for it anywhere (might need to clear your site cache via the dashboard before this takes effect). But the next time you upgrade the system, this will revert back to the original behaviour again (kind of defeating the purpose of having separate custom templates).

I tried reporting this as a bug, but was told that they don't think it's a problem (because the alternatives would create other problems that they think would be even worse?).

:(
moth replied on at Permalink Reply
moth
Ok. Not really a bug I suppose - just an annoyance. In terms of speed - it's X number more http requests. Something C5 can always do without...