Hi guys,
I am not sure if this is a field collection issue or is related to drupal core itself or if it's something else...
But we do use field collection to build the front blocks on this site...
But I'm having a problem that randomly the field wrappers (div wrappers) DO NOT get output, then it breaks the formatting (looking and feel) of the site...
When it happens, this:
<div class="field field--name-field-title field--type-text field--label-hidden"><div class="field__items"><div class="field__item even"><h3><a href="http://info.mysite.com" title="Oil Supply Chain Disruption Impacts" target="_blank">Oil Supply Chain Disruption Impacts</a></h3>
</div></div></div>
Becomes this:
<h3><a href="http://info.mysite.com" title="Oil Supply Chain Disruption Impacts" target="_blank">Oil Supply Chain Disruption Impacts</a></h3>
Then after clearing all cache (drush cc all)
Everything gets back to normal...
See screenshot of the issue...
Please let me know if you guys have any input on this...
Thank you in advance...
Comment | File | Size | Author |
---|---|---|---|
#3 | drupal_root-field_hack_1.patch | 961 bytes | jmuzz |
field-wrapper-issue.jpg | 282.11 KB | lemu@commonplaces.com |
Comments
Comment #2
lemu@commonplaces.com CreditAttribution: lemu@commonplaces.com commentedComment #3
jmuzz CreditAttribution: jmuzz commentedI had a similar problem with another kind of embedded content that was caused by nodes being loaded when the admin theme was active, while managing the site for example. It didn't matter that the nodes were not displayed at that time, their field values were cached after being rendered with the wrong theme and then displayed later.
Try this core hack and let me know if it solves your problem.
(May need modifying, for example remove the 'story' conditional)
Comment #4
jmuzz CreditAttribution: jmuzz commented