Events Made Easy Forums How do I … Adding Map of all events to the template

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #43794
    Anonymous
    Inactive

    So I see the shortcode to add a map to any content but I want to add one map that shows all event locations in my template page. I have found code to add the calendar and list as a template piece but nothing about the map. Slowly working my way into this. Great plugin!

    #49691
    Franky
    Keymaster

    See http://www.e-dynamics.be/wordpress/?cat=38 for the map shortcode. The corresponding function call for templates would be eme_global_map

    #49692
    Anonymous
    Inactive

    Thanks for the reply.

    http://76.12.196.238/~whiteriv/

    So what am I missing there. It tells me I am missing an argument.

    My code

    <div><?php eme_global_map(); ?></div> <!—Here is the error–>

    #49693
    Franky
    Keymaster

    Try changing the line 715 in eme_locations.php from

    function eme_global_map($atts) {

    to

    function eme_global_map($atts=””) {

    #49694
    Anonymous
    Inactive

    Is this now a future bugfix?

    (I didn’t even know global map was a feature!)

    #49695
    Franky
    Keymaster

    Well … in fact any function that’s called for handling a shortcode can be called directly 🙂

    In this case, I won’t change the code until jeynon confirms it works.

    #49696
    Anonymous
    Inactive

    I get nothing…

    #49697
    Anonymous
    Inactive

    Hi,

    I do use the [locations_map] shortcode, but as it is named, you get the map of locations, and not the map of events which is what I really want. In particular, you get a clickable “list of locations” and what I expect is a list of events.

    Of course i could list the events in another way, using [events_list], but I would lose the link with the google map flag…

    I would appreciate if you could help me.

    #49698
    Franky
    Keymaster

    Well, I have something like this ready, but I’m still thinking about the best way to show it (the letters A,B,… correspond to the locations on the map):

    A. Location 1
    - event 1
    - event 2
    B. Location 2
    - event 3
    - event 4
    ...

    or:

    A. event 1
    A. event 2
    B. event 3
    ...

    or:

    - event 1 at location name 1
    - event 2 at location name 1
    - event 3 at location name 2
    ...

    In all cases the map will still show the location info like you specified it, not event info directly. For that, you can use the locations details, and use in there the code “[events_list location=this_location]” to show a list of events on that location (and all other usual options)

    Edit: the first and the second layout are now possible in trunk

    #49699
    Anonymous
    Inactive

    Hi Franky, thanks for your prompt reply.

    I’m ok with your assumption that in all cases the map will show the location info, otherwise it would be difficult to manage several events in a same place.

    Using the list of event in the detail section of the location is ok too.

    The only problem remaining is the list. As you explained, selection of the best layout is not that easy, so I can understand you’re still thinking about it.

    But what do you mean by “the first and second layout are now possible in trunk” ?

    #49700
    Franky
    Keymaster

    That means that in the current development version the first and second layout I suggested in my post above are now possible, and so it will be available in the next version.

    #49701
    Anonymous
    Inactive

    That’s fine !

    Thanks.

Viewing 12 posts - 1 through 12 (of 12 total)
  • The forum ‘How do I …’ is closed to new topics and replies.
Scroll to Top