Problem/Motivation

Date views rewrite fields, among others the event location (depending on the attendance mode, this can be a physical address or a url).

In the filtered date views on location pages, the physical location is not rendered. However, an empty div.location is rendered.

This is giving themers a hard time when they want to prepend a location marker icon to the field.

Steps to reproduce

Use CSS (e. g. red border) to make this field visible.

Resolution

Rewrite the rewrite to that the location field is only rendered when it has content (i.e. unless a virtual location is indicated) in the following view displays:

  • Related dates > By location
  • Related dates archive > By location

Comments

hexabinaer created an issue. See original summary.

tobiasb’s picture

Assigned: tobiasb » Unassigned
Status: Active » Fixed

Fixed.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • tobiasb committed 873cb6d5 on 2.6.x
    fix: #3578054 Do not render empty location field in date views
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.