Map

This topic contains 16 replies, has 3 voices, and was last updated by  Scott Macdonald 9 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #34894

    Scott Macdonald
    Buyer
    Post count: 286

    hi there would I be able to use the map and link the icons to other web pages other than the standard ones it produces

    here is a site I have http://www.hutsandcabins.co.uk

    and I want to produce this type of idea

    http://www.wigwamholidays.com/Wigwam_Site_Locations

    thanbks

    #34899

    Simone
    Expired Member
    Post count: 3515

    Hi Scott, not sure I get you, do you want to redirect to another website when clicking on the pin in the map rather than going in the “detail” page?

    #34903

    Scott Macdonald
    Buyer
    Post count: 286

    hi sorry what i am trying to say is yes click on the pin on the map or the link on the pop up and it can take you too any page on the same site

    can you choose where the it can link to ?

    #34914

    Simone
    Expired Member
    Post count: 3515

    What you could do is to add a custom field with a link, and then add a function in that infomap window. Ive spoke with Stiofan and he’s going to add a new action in order to do that.

    #34916

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Scott,

    This depends on exactly what you want to do, there is a filter there for the html output “geodir_custom_infowindow_html” and i have just added an action for after the meta info, which will be in the next release “geodir_infowindow_meta_after” which could both help.

    Thanks,

    Stiofan

    #34918

    Scott Macdonald
    Buyer
    Post count: 286

    brilliant thanks I think your plugin could be great for my website http://www.hutsandcabins.co.uk

    #34919

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Looks perfect for it, and also i’m Scottish 🙂

    #34920

    Scott Macdonald
    Buyer
    Post count: 286

    cool I’ll give it a go then 🙂

    #34931

    Scott Macdonald
    Buyer
    Post count: 286

    I’m not seeing how to add a custom link sorry

    and where is the filter for the html output “geodir_custom_infowindow_html” ?

    thanks

    scott

    #34942

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    It would be harder to add it with the filter, you would have to do a strip replace for positioning. The new hook once released will allow you to add a link like the following example (would be added to your child theme functions.php)

    
    
    add_action('geodir_infowindow_meta_after','my_custom_link_in_infowindow',10,2);
    function my_custom_link_in_infowindow($post_obj,$preview){
    
    echo "<a href='#'>MY LINK</a>';
    }

    Thanks,

    Stiofan

    #34943

    Scott Macdonald
    Buyer
    Post count: 286

    When will the new release be ready with it ? thanks

    #34952

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Scott,

    Hoping to release tomorrow but you can see the change here:https://github.com/GeoDirectory/geodirectory/commit/9fd5672afbb5fe7bc1cea98014b6148541b2f6e5

    Or even download our latest dev version here: https://github.com/GeoDirectory/geodirectory/archive/master.zip

    Project home: https://github.com/GeoDirectory/geodirectory

    Thanks,

    Stiofan

    #34953

    Scott Macdonald
    Buyer
    Post count: 286
    #34954

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    not sure what you mean by that?

    #34955

    Scott Macdonald
    Buyer
    Post count: 286

    sorry the image in the header I can’t see where to change it

Viewing 15 posts - 1 through 15 (of 17 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket