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.
Hi when I try to open a colorbox with a few other panels and a location map it says javascript required..
Is it just possible to open the map in a separate box?
Comments
Comment #1
hutch CreditAttribution: hutch commentedI don't know why you are seeing this error message, but Colorbox opens in an Iframe and you can control this in your theme with function template_preprocess_getdirections_box() and the template file getdirections_box.tpl.php.
Comment #2
Stellanhaglund CreditAttribution: Stellanhaglund commentedDoesnt it open in a div?
Comment #3
Yorgg CreditAttribution: Yorgg commented@Stellanhaglung: Did you manage to get it loading?
I've copied the .tpl.php file to my theme templates folder but I'm not sure how to add class="colorbox-load" into the link at getdirections_field.
I've also enabled this and the inline features in colorbox module.
Comment #4
hutch CreditAttribution: hutch commented@staminna, if you are using Getdirections 7.x-3.x-dev and want to alter the Field that provides a link to a getdirections map, you can copy function theme_getdirections_fields_link() from getdirections_fields.module to your theme's template.php, renaming it of course and altering it there.
Just tested this:
Change
to
Remember to flush cache after editing template.php
See
https://api.drupal.org/api/drupal/includes!common.inc/function/l/7
for details on what you can do with function l()
Comment #5
hutch CreditAttribution: hutch commentedThere is a bug in the method described in #4, I will be working on a fix.
Update: getdirections_box has been fixed, the method shown in #4 will work, you will need to fetch the latest dev when it appears, hopefully tomorrow, or pull it with git.
Just to be clear, this applies to Getdirections 7.x-3.x-dev
Comment #6
Yorgg CreditAttribution: Yorgg commentedThanks Hutch, it worked.