custom attribute form.css NOT loading

Permalink
Dumping the AttributeTypeView::render() within the
$css = $this->attributeType->getAttributeTypeFileURL($view . '.css');
shows it has got the right url. Then, the
if ($css != false) { $this->controller->addHeaderItem($html->css($css));
}
runs so you'd think it would be good to go - but no, it never makes it to the page source.

Don't see any mention of this problem anywhere on C5 forums. Using C5 5.4.2.1 . Any thoughts?

Ricalsin
 
Ricalsin replied on at Permalink Reply
Ricalsin
Aaaa! I thought I'd come back and let the like-minded "ill" informed (such as myself) know of the solution.

I was simply losing the race to the header. Using AJAX to load some code without a page refresh. Went with javascript ccm_addHeaderItem() to call the css when it is needed.

Thanks to C5 member jessup for that one: http://www.concrete5.org/community/forums/customizing_c5/custom-jsc...