When embedding a view that uses http://drupal.org/project/views_autocomplete_filters (and presumably its not unique to this combination) - the $head var in web_widgets_iframe_wrapper.tpl.php isn't populated.
looking through the call stack the styles and scripts are set here: template_preprocess_web_widgets_iframe_wrapper(&$variables) in web_widgets_style_iframe.inc but are empty.
I found that adding
print drupal_get_js();
print drupal_get_css();to the head section of web_widgets_iframe_wrapper.tpl.php made the remote widgets work fine, so i guess its something to do with how the widgets are called. further up the theme chain.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | web_widget-missing-js-css-1666756-1.patch | 543 bytes | clemens.tolboom |
Comments
Comment #1
clemens.tolboomI can confirm both the problem and the fix. It works.
But I'm not sure what's the best solution.
Comment #2
clemens.tolboomComment #3
clemens.tolboomSimilar to 6.x #1050888: Doesn't load jquery_update scripts
Comment #4
clemens.tolboomThese look like a duplication of the intent for styles and scripts.
So this needs a follow up if committed first.
Comment #5
clemens.tolboomWithout this patch the originating site styles are not working.
One could argue the styles should not be applied but then what parts exactly?
XREF #970874: how to strip all styling