Home › Forums › Calendar Products › Events Calendar PRO › Venues only in map view?
- This topic has 4 replies, 3 voices, and was last updated 10 years, 2 months ago by
Support Droid.
-
AuthorPosts
-
January 23, 2016 at 6:51 am #1061057
Chris
ParticipantI need to show a map view of just venues for the site. I know that I can use a link like /events/map to show events in map view, but I need to just show the venues.
I already tried to do a custom page template, but could not get the map working. Is there a solution that I could use, to just show all selected venues (from a custom query) to show on a map, like for the regular map view?
January 25, 2016 at 8:32 am #1061866Brian
MemberHi,
Thanks for using our plugins. I can help out here.
We only have the Map view to display events and not by venues. It is beyond the support we can provide to help out on customizations and we do not have any resources to provide on a major customization such as this.
If you think that is something you would like as a feature I encourage you to visit our User Voice Page and either upvote an existing request or make a new request there.
Let me know if you have any follow up questions.
Thanks
January 26, 2016 at 7:33 am #1062533Chris
ParticipantThanks for the information. I can do the custom query to get the venues that I need, but I want to use your Ajax_Map asset class, in order to get the map shown. I don’t want to re-invent the wheel and all the necessary functions are already there.
This is what I tried:
I create a custom page template and call the function:
Tribe__Events__Pro__Template_Factory::asset_package( ‘ajax-maps’ );
that should include the javaScript for “tribe-maps” and “tribe-events-pro-geoloc” into the template. But for some reason, they are not showing up on the page.
I think I can just copy the code inside the handle method and rebuild the functionality, but it would be better coding standard to use the existing class. I stepped through it via debugger, and the javaScript files are actually registered and enqueued when I step through, but at some point it seems that they are de-registered somewhere in the modern tribe code.
If you can just point me to the right direction, so that I can use this existing asset, I can take it from there and build the map by myself.
January 26, 2016 at 3:01 pm #1062746Brian
MemberHi,
I can try to help out, but limited in troubleshooting and supporting customizations per our terms and conditions.
I looked at the method itself and not sure why it is not loading.
Instead of calling it by the class, maybe it would work better to use the coding here:
plugins/events-calendar-pro/src/Tribe/Asset/Ajax_Maps.php
And create your own function to load the scripts that way?
Otherwise I am not sure what else to do on it.
THanks
February 20, 2016 at 8:35 am #1078890Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Venues only in map view?’ is closed to new replies.
