Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the default month view, the style settings for fields ("Customize field HTML" etc.) don't seem to be applied to multi day events, but only to single day ones. Maybe I just overlooked some setting for this, in this case please tell me where I can change this.
Comments
Comment #1
Harmageddon CreditAttribution: Harmageddon commentedCan anybody confirm or fix this?
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedThis is a real thorn in my side too! Two resources that helped me:
Drupal 7 Views Module Tutorial 5 of 10: Theming Views
http://www.youtube.com/watch?v=1Cfc11_sb5M
Tutorial - How to Style An Event Calendar in Drupal 7Tutorial - How to Style An Event Calendar in Drupal 7
http://www.cmsquickstart.com/blog/style-event-calendar-drupal-7
Comment #3
silurius CreditAttribution: silurius commentedHas anyone found a workaround or fix for this?
Comment #4
bartmann CreditAttribution: bartmann commentedThe output isn't getting wrapped in the field/label wrappers - so this is a bug. A workaround is to rewrite the output and add your tags there.
So go to the field you need the styling on and go to the 'rewrite results' option and add your tag and then the replacement in the Text box - for example:
<h3>[field_name]</h3>
Works pretty well and I hope that is what you are looking for...
Comment #5
silurius CreditAttribution: silurius commentedHi Bartmann. Yes, I saw this workaround and it's helpful (thanks) but it's not perfect. The style settings feature replaces spaces in token replacements with hyphens and the rewrite feature preserves the spaces. And of course in CSS a space between elements is interpreted as a division between two elements.
So for a field that has more than one value (such as multiple taxonomy terms), the style feature would render
<div class="[field_term"><p>[field_title]</p></div>
as<div class="Green-Apples-Ruby-Grapefruit"><p>Title field text</p></div>
.Whereas the rewrite feature would render it as either
<div class="Green Apples, Ruby Grapefruit"><p>Title field text</p></div>
or (if you use a hyphen separator instead) as<div class="Green Apples-Ruby Grapefruit"><p>Title field text</p></div>
. The comma and the hyphen, in this case, can become a problem in CSS for different reasons.Comment #6
apadernoComment #7
Neslee Canil PintoHi, there will be no more future development for 7.x branch. If you see this issue in 8.x, feel free to file an issue. Close this as Outdated.