Skip Navigation

[Résolu] Toolset views and Modern Tribe Event calendar

This support ticket is created Il y a 5 années et 11 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Ce sujet contient 8 réponses, a 2 voix.

Dernière mise à jour par Christian Cox Il y a 5 années et 11 mois.

Assisté par: Christian Cox.

Auteur
Publications
#1165533

Hi

on WP 5.0.1 + Latest Toolset + Modern Tribe Event Calendar 4.7.1 I can't create a Toolset view that would use the Modern Tribe Event Calendar custom fields as seach filters.

Thanks

cyril

#1165752

The short answer is it's not usually possible to use Tribe fields as custom search filter criteria in a View. A custom field must be managed by Types in order to use it as a front-end search filter in Views. Tribe event fields are hidden, so Types doesn't have the ability to manage them. Futhermore, Tribe stores event dates in a different format than Types date fields, so even if the date fields are managed by Types they aren't compatible with date operations in Views. In order to use Tribe event fields successfully in Views, you would have to use custom code to copy those values into a duplicate Types custom field, formatted correctly, whenever the Event post is saved.

If you only want to filter the View on the backend through wp-admin, then it's possible to use some of these fields as filters by implementing the wpv_filter_query API. I have an example if you'd like to see how that works:
https://toolset.com/forums/topic/date-comparison-error-with-tribe-events-calendar-after-update/
Again, this is only for Views filtered on the backend, not front-end filtering.

#1165808

Hi Christian
Thanks it is clearer now.
Switching from joomla to wordpress is partly motivated by the fact wordpress plugins share a more colon basis with custom content types and fields.
If we can't use toolset with tribe event calendar and if you don't provide a calendar view which other event managment plugin do you recommend please ?

Thanks

Cyril

#1165815

Unfortunately we don't have an official recommendation. There is no Toolset built-in integration with any particular event management plugin, but you might try searching the forums for any other plugin names to see what other Users have experienced and reported. You can do this by typing somthing like the following into the Google search bar:

site:toolset.com "Plugin name in quotation marks"
#1166177

Hi Christian

I see but we definitively have a model issue here. I can't understand why Toolset provides a gmap view but no calendar view.

and please correct me if I'm wrong but if I understand you well Toolset views can filter on plugins fields if they respect some wordpress rules ?
I mean custom content types and custom fields are part of WordPress core, right ? So if the third party plugin implement these custom posts and fields as expected , Toolset Views can manage them ?

thanks

cyril

#1166209

After some new tests with toolset and Tribe event calendar, I see I can add the hiddent fields in ToolSet settings but even in this case I can't change the way a single event is displayed

Even if I create a content template where I only put

[wpv-post-field name='_EventStartDate']

The front end result shows this custom output with the rest of the standard Tribe event output.

My MAIN concern is, as you may have understood already, what is the best way of working with WordPress / toolset and third party plugins ?

thanks

cyril

#1167158

My MAIN concern is, as you may have understood already, what is the best way of working with WordPress / toolset and third party plugins ?
There is no single answer that applies in every case. Some third-party plugins have proprietary database tables where they store custom field values. Some inject content in ways that are non-standard, so Toolset's filters do not affect them. In general:
- Toolset can access any public custom fields that are stored as non-serialized postmeta entries.
- Toolset dates are stored as Unix timestamps, so other date formats are not supported.
- Toolset's Content Templates work by filtering the_content(). If a third-party system injects content outside of the_content(), it may not be controllable by Toolset's template system.

#1167421

Ok Thanks Christian for these explanations

In this case, if the programming of WP plugins is not that constraining I believe you have no other choice than proposing a "set of tools" that cover as far as 100% of the regular needs.
The calendar view is one of those features

Thanks

Cyril

#1167883

In this case, if the programming of WP plugins is not that constraining I believe you have no other choice than proposing a "set of tools" that cover as far as 100% of the regular needs.
I do not understand what this means, sorry! If you'd like to see new features added to the software, we have a process for handling those requests. You can begin by submitting the feature request form here: https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/
Those requests go to Amir, and he will evaluate them to see if it's something we can offer.