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.
Tokens Does not work when used with Marker icon path in views formatter for common map.
Whenever custom field value is used as token for marker icon path, there is some extra space gets added after applying viewsTokenReplace, This results in invalid path url for the icon, and the icon does not get displayed.
The screenshot is attached.
Comment | File | Size | Author |
---|---|---|---|
#3 | geolocation-marker-icon-token-2947143-3.patch | 710 bytes | rakshith.thotada |
| |||
geolocation-marker-icon.png | 1.04 MB | rakshith.thotada |
Comments
Comment #2
rakshith.thotada CreditAttribution: rakshith.thotada as a volunteer commentedComment #3
rakshith.thotada CreditAttribution: rakshith.thotada as a volunteer commentedThe proposed fix:
Trim the whitespace both at beginning and end before passing it to file_create_url function.
The patch is uploaded
Comment #4
rakshith.thotada CreditAttribution: rakshith.thotada as a volunteer commentedComment #5
ChristianAdamski CreditAttribution: ChristianAdamski commentedMight already be fixed by #2947648: Default markers are broken after [#2941285], but this is good as well.
Comment #7
ChristianAdamski CreditAttribution: ChristianAdamski commentedComment #8
rakshith.thotada CreditAttribution: rakshith.thotada as a volunteer commented@ChristianAdamski Thanks so much for verifying and committing this patch for token related fix.