Forum Replies Created
-
AuthorPosts
-
cobeaParticipant
Hi Victor,
thanks for answering.It took me too long to solve this so, I finally decided not to use the shortcodes.
Anyways, it would be great to have a propre override possibility also on the shortcode template views.
Bye.
cobeaParticipantHi Victor,
thank you for the tip, but the really wird thing though is that the map is not displayed directly before the bar in the HTML structure, but at the top of the page. It is like it is off the flux and thus takes the full screen width.- This reply was modified 6 years, 3 months ago by cobea.
cobeaParticipantHi, thanks for your answer but as I wrote I am displaying the map view with the [tribe_events view=”map”] shortcode and unfortunately when using the shortcode, the template override does not work.
I could find why in the Tribe__Events__Pro__Shortcodes__Tribe_Events class :
`public function prepare_map() {
if ( ! class_exists( ‘Tribe__Events__Pro__Templates__Map’ ) ) {
return;
}tribe_get_template_part( 'pro/map/gmap-container' ); $this->view_handler = new Tribe__Events__Pro__Shortcodes__Tribe_Events__Map( $this );
}`
You can see that the call for the template part
tribe_get_template_part( 'pro/map/gmap-container' );
is made first and so it does not allowed override.So now I really need a solution to override this and to display the map between the filter bar and the events list.
THanks.
cobeaParticipantHi, thanks for your answer but as I wrote I am displaying the map view with the [tribe_events view=”map”] shortcode and unfortunately when using the shortcode, the template override does not work.
I could find why in the Tribe__Events__Pro__Shortcodes__Tribe_Events class :
`public function prepare_map() {
if ( ! class_exists( ‘Tribe__Events__Pro__Templates__Map’ ) ) {
return;
}tribe_get_template_part( 'pro/map/gmap-container' ); $this->view_handler = new Tribe__Events__Pro__Shortcodes__Tribe_Events__Map( $this );
}`
You can see that the call for the template part
tribe_get_template_part( 'pro/map/gmap-container' );
is made first and so it does not allowed override.So now I really need a solution to override this and to display the map between the filter bar and the events list.
THanks.
cobeaParticipantHi, thanks for your answer but as I wrote I am displaying the map view with the [tribeg_events view=”map”] shortcode and unfortunately when using the shortcode, the template override does not work.
I could find why in the Tribe__Events__Pro__Shortcodes__Tribe_Events class :
public function prepare_map() {
if ( ! class_exists( ‘Tribe__Events__Pro__Templates__Map’ ) ) {
return;
}tribe_get_template_part( 'pro/map/gmap-container' ); $this->view_handler = new Tribe__Events__Pro__Shortcodes__Tribe_Events__Map( $this );
}
You can see that the call for the template part
tribe_get_template_part( 'pro/map/gmap-container' );
is made first and so it does not allowed override.So now I really need a solution to override this and to display the map between the filter bar and the events list.
THanks.
cobeaParticipantHi Victor,
thank you for your answer.Unfortunately in my case the map is not displayed just before the filter bar but at the top of the post content, leaving some other html tags in between (as you can see on the link I shared).
Moreover when I try to move the map in the template as you suggested, it makes a PHP error, like if I do that :
tribe_get_template_part( 'modules/bar' );
tribe_get_template_part( 'pro/map/gmap-container' );
tribe_get_template_part( 'pro/map/content' );It bugs.
What can I do ?
cobeaParticipantI am using the shortcodes [tribe_events] for displaying purposes.
Here’s the issue (with no other plugin except TEC & TEC Pro) : https://upfestival-be.catastrophe.staging.wpengine.com/?tribe_event_display=mapcobeaParticipantHi Andras, thank you for your answer.
Indeed it is not exactly what I ment as I’d like to remove the all from the URL but also (and mainly) because what I aim to achieve is having a standard event page with all the common information (Details, Organizzer, Venue, etc.) AND all the occurrences of this event listed as a simple list of dates and hours.
I guess what I mean is that I don’t really get the point of spliting occurrences into different pages as the core datas of the event is the same, so I think it would be best to have what I tried to get, always a single event page with an additional block listing the different occurrences of the event (from which I guess only date and time shoud be displayed as this is the only datas that differ anyway).
Other thing (I guess it should be another thread) I got issues with the links towards the “All” page from an occurrence of an event :
it is always : mysitze.com/events/event/year-month-day/all/
insted of : mysitze.com/events/event/all/Thank you for helping me !
-
AuthorPosts