Possible to move Google Map to block?

Discussion in 'Subrion CMS Plugins Discussion' started by popey87, May 8, 2015.

  1. popey87

    popey87 Member

    Hey guys, is there any way we can add Google map to movable block rather than tabs section?

    Also out of interest is it possible to move publishing script article content as well as article image to tabs section?

    Any help would be greatly appreciated :)
  2. popey87

    popey87 Member

    please could u guys answer this today if its possible cheers.
  3. wazza

    wazza Member

    Have you found the code in the tab? If so copy paste it into a new block. Might need to change size etc
  4. popey87

    popey87 Member

    I couldn't find any code that allows me to move it to a block but would really love to if someone can point me in the right direction. :)
  5. popey87

    popey87 Member

    Also would it be possible to get the functionality of the esyndicat google maps plugin like the radius search?
  6. wazza

    wazza Member

    what package are you using? unsure if you are using a plugin or is the gmap in the package?
  7. popey87

    popey87 Member

    I am using the gmap plugin
  8. wazza

    wazza Member

    Code (Text):
    {if isset($gmap_data)}
        {ia_block name='gmap' header=false}
        <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
        <div class="gmap-data hidden" id="item-gmap-data"
            data-item-id="{$gmap_data.id}"
            data-title="{$gmap_data.title}"
            data-description="{if isset($gmap_data.description)}{$gmap_data.description|strip_tags|truncate:250}{/if}"

            data-zip="{$gmap_data.zipcode}"
            data-country="{$gmap_data.country}"
            data-state="{$gmap_data.state}"
            data-city="{$gmap_data.city}"
            data-address="{$gmap_data.address}"
            data-lat="{$gmap_data.latitude}"
            data-lng="{$gmap_data.longitude}"

            data-url="{ia_url type='url' item=$gmap_data.item data=$gmap_data.listing}"
            data-zoom="15">
        </div>
        <div id="js-gmap-renderer" class="full-width hidden"></div>
        {/ia_block}

        {ia_print_css files='_IA_URL_plugins/gmap/templates/common/css/style'}
        {ia_print_js files='_IA_URL_plugins/gmap/js/frontend/google-map' order='3'}
    {/if}
    popey87 likes this.
  9. wazza

    wazza Member

    from map.tpl
  10. wazza

    wazza Member

    you should be able to just create a smarty block
  11. popey87

    popey87 Member

    pretty sure I tried that but ill try again thanks
  12. popey87

    popey87 Member

    Thanks wazza, i had tryed it before but what i didnt do was delete the content in the map.tpl so that the map loads once only but in the place i wanted it. cheers.
  13. wazza

    wazza Member

    no worries popey87. Glad i could help
    popey87 likes this.

Share This Page