Hi,

I wanted to glob some fields together for the bubble pop-up field (such as Name, Address, Phone #) into a field to use for the bubble pop-up field. When I do, if I click on the marker, it takes me to the site home page.

Thanks,

Alex

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

don@robertson.net.nz’s picture

Greetings,

I am using 7.x-1.x-dev. When I try to use custom text for a bubble pop-up feild, I do not get any bubble popping up when I click on the marker, but I do not get redirected anywhere either

Lanny Heidbreder’s picture

I can confirm the behavior in #1, but not the OP. I'm not redirected anywhere, I just don't get a bubble at all. I can rewrite a normal field to my heart's content and it works perfectly, but putting anything in this basically rewriting-only field fails.

eMuse_be’s picture

in gmap_plugin_style_gmap, you can see that the bubble text is derived from the entity fields, this needs to be rewritten

    $bubbletext_field_alias = '';
    if ($this->options['bubbletextenabled']) {
      $bubbletext_field_obj = $this->view->display_handler->get_handler('field', $this->options['bubbletextfield']);
      $bubbletext_field_alias = $bubbletext_field_obj->field_alias;
    }

          $bubbletext = NULL;
          if ($this->options['bubbletextenabled'] && !empty($bubbletext_field_alias) && !empty($row->{$bubbletext_field_alias})) {
            $bubbletext = $this->rendered_fields[$row_index][$this->options['bubbletextfield']];
          }
eMuse_be’s picture

If you need a quickfix:

gmap_plugin_style_gmap.inc:

line 214:

change:

          $bubbletext = NULL;
          if ($this->options['bubbletextenabled'] && !empty($bubbletext_field_alias) && !empty($row->{$bubbletext_field_alias})) {
            $bubbletext = $this->rendered_fields[$row_index][$this->options['bubbletextfield']];
          }

to:

        $bubbletext = NULL;
          if ($this->options['bubbletextenabled'] && !empty($bubbletext_field_alias) && !empty($row->{$bubbletext_field_alias})) {
            $bubbletext = $this->rendered_fields[$row_index][$this->options['bubbletextfield']];
          }
          
          else if($this->options['bubbletextenabled'] && $bubbletext_field_obj->real_field == 'nothing'){
            $bubbletext = $this->rendered_fields[$row_index][$this->options['bubbletextfield']];
          }

This is a quickfix, I will try to change it later and debug some more to create a stable and abstract patch.

gusantor’s picture

this fix my problem, now I can show any field at popup, but I can't to get any html well displayed, just raw html code, please can you give me any direction in the way to solve this

thanks in advance

carrection:
- when use a global php field returning some html, popup display raw html
- instead, when I use a global personalized text, popup display html as spected

thxs

podarok’s picture

Status: Active » Needs work

can You provide a patch for #4 against latest dev ?

svajlenka’s picture

Status: Needs work » Needs review
FileSize
1.11 KB

Providing patch for #4 against latest dev.

N20’s picture

That patch works fine for me. Thanks svajlenka!

I used all stable no dev releases (views, gmap etc.)

cheers, N20

podarok’s picture

Status: Needs review » Needs work
podarok’s picture

Version: 7.x-2.x-dev » 7.x-1.x-dev

backporting to 7.x-1.x

podarok’s picture

Status: Needs work » Fixed

thanks to all

lahode’s picture

I applied the patch with beta1 and it worked, but today I updated to beta3 and saw the patch was ported, but it doesn't work anymore...

podarok’s picture

Status: Fixed » Postponed (maintainer needs more info)

#12 can You fill summary with updated bug or post a new follow up against latest dev?