Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I need to manipulate a field (title) before it is rendered into the map. My customization in views-view-field--view-test--title.tpl.php has no effect.
The theming information says that openlayers-views-data.tpl.php cannot be found in sites/all/modules/openlayers/modules/openlayers_views/views. I can only find openlayers-views-map.tpl.php in the directory. I cannot find this file openlayers-views-data.tpl.php anywhere.
Thanks in advance!
Comments
Comment #1
tmcw CreditAttribution: tmcw commentedYou probably can't, and shouldn't, do tpl-level customization of the title (especially because this will affect the entire site). You should implement theme_openlayers_views_render_feature and do it there.
It doesn't exist: the data is passed into the page as javascript, not HTML, so isn't, and cannot be, run through a theme file.
Comment #2
ckreutz CreditAttribution: ckreutz commentedThanks very much!
However I found two ways, which work. One is to rewrite html output in the title field in view fields. If you include here additional fields you can manipulate them through a template and they are shown together with the title field.
Comment #3
tmcw CreditAttribution: tmcw commentedGreat, closing.