Home › Forums › Calendar Products › Events Calendar PRO › ** For Geoff B. ** – As discussed – WPML batch duplication/ display
- This topic has 11 replies, 4 voices, and was last updated 7 years, 8 months ago by
Support Droid.
-
AuthorPosts
-
September 16, 2016 at 2:46 am #1165015
Greg
ParticipantHi Geoff,
Splitting out what I mentioned in the other thread.
The issue we have is when events exist in English, but have not been translated into other languages – they do not display on the foreign language site.
The scenario we should have is that if a translation does not exist of a post/event, the default language version is displayed.
This works for regular Blog posts, with WPML’s inbuilt functionality.
Found in WPML -> Languages -> Blog Posts To Display.
So, first and foremost, this doesn’t happen for Event posts. If we switch to French, only posts that have had a French translation added, are displaying.
I had expected, being that as Events are just a custom post type, that it would work.
I would say this is the root cause of the problem.
Possible reason, given in the message under that section of WPML…
“Please note that this setting affects only blog posts queried by the main loop in a theme’s index.php template.“Our theme is Avada. Avada claims to have pretty tight integration with Events Cal….
/==
In fact, a bit of background here – We have used and trusted Avada for years. The fact that Events Calendar was advertised as being included/supported, was a partial reason why we adopted the Events Calendar as our chosen solution… 🙁 )
==/So that’s the problem and possible reason.
Then, even if we try to workaround the problem using WPML’s batch duplication tool, that doesn’t work either.
WPML’s comment on this:
https://wpml.org/forums/topic/display-english-if-translation-does-not-exist/#post-1078156
“This method is directed towards posts/pages … Events Calendar is a plugin that if i remember well clients in the past have had difficulty with translating ..”
To be honest, I think the concept of duplicating content into its own language, to trick the system into thinking it’s displaying a translated version, is absolutely ridiculous and a waste of resources.
So, we really need to get this working the right way – eg the same way it does for blog posts – just “filling in the gaps” with the pre-existing English content, not duplicating things unneccessarily.
Thanks and best wishes,
Greg
September 17, 2016 at 12:54 am #1165464Geoff B.
MemberGood evening Greg,
This is an awesome in depth analysis of additional steps towards a much better integration of WPML.
The scenario we should have is that if a translation does not exist of a post/event, the default language version is displayed.
This works for regular Blog posts, with WPML’s inbuilt functionality. Found in WPML -> Languages -> Blog Posts To Display.Having an extra option similar to Blog Posts To Display would provide great control over how our calendar is integrated and what behaviour it should have.
I will open a separate ticket for that type of integration. In fact, as I do that I will try to see if we could not come up with a snippet to do just that.That being said, you are right, this option in WPML is only meant for blog posts that go through the main blog loop, nothing else unfortunately.
I’ll talk to our main Dev about workaround possibilities on Monday and get back to you.
Have a good week-end,
Geoff B.
September 17, 2016 at 5:01 am #1165482Greg
ParticipantCheers Geoff.
Here is my thread at WPML which confirms this thinking
https://wpml.org/forums/topic/display-english-if-translation-does-not-exist/
Their reasoning behind duplication relates to permalinks & breadcrumbs – which I appreciate is a consideration, and worth bearing in mind with your integration.
If we’re on the French site,
Enter an event in English
Then want to go somewhere else/back via menus or breadcrumbs…. We’re in the English site now.Cheers
September 19, 2016 at 9:33 pm #1166237Geoff B.
MemberHey Greg,
Some news on this topic. A full fledged feature ticket has been created to have a similar feature for our custom post type, events (basically a prepost custom query with some filter suppression). It will now need to enter the full dev cycle.
The point about breadcrumbs is a good one. However, that is also true for that functionality with basic “normal” posts.
So there are 2 tickets.
- 1 for the batch duplication tool
- 1 for a similar functionality for the events custom post type
After giving this some extra thought, the reason why the batch copy currently does not work is because the manual “copy other x language content” button does not work currently. You have to use the “overwrite with X language’s content” button for the meta data to get carried over.
The good news is that with the upcoming release of 4.3, there is a good chance that the metadata will get copied over properly.
As soon as it’s released, I will run some tests to see if it does.Best regards,
Geoff B.
September 20, 2016 at 1:57 am #1166287Greg
ParticipantThis reply is private.
September 20, 2016 at 11:01 pm #1166812Geoff B.
MemberThis reply is private.
September 21, 2016 at 6:29 am #1166877Greg
ParticipantThanks for your update and perseverance. Glad the files are now in-hand. Best of luck with it, fingers crossed.
September 26, 2016 at 3:03 am #1168650Greg
ParticipantThis reply is private.
September 26, 2016 at 10:02 pm #1169045Geoff B.
MemberGood evening Greg,
As discussed in the previous thread, I ran some pretty extensive tests.
Full disclosure, there are still far too many irritants to my liking.My tests with the batch duplication tool were not perfect, but I think they are workable for now.
Basically, the batch duplication tool copies everything save for the Venue and the Organizer (as outlined in the updated KB post and the other thread).
In other words, once you batch duplicate, there are 4 things you need to do in the duplicated content:
- Click on “Translate independently”
- Assign the Venue manually from the dropdown
- Assign the Organizer manually from the dropdown
- Click on “Update”
As a side note, I received confirmation that we will be able to add the “Blog posts to display” functionality. However, this needs to go through the full dev cycle.
The good news is that, as you know, there is a great amount of effort being put forth in bringing this whole thing to the next level.I know it probably does not count for much, but I want to personally thank you for helping us really improve this aspect of our products.
Best regards,
Geoff B.
October 18, 2016 at 9:35 am #1178499Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support TeamJuly 12, 2018 at 8:05 pm #1574329Geoff B.
MemberGood evening Greg,
Long time no talk!
Just a couple of quick heads up about this one.
First off, we have a renewed partnership with WPML which means you should see increased compatibility in the next little while.Specifically, I wanted to make you aware of one pretty cool change in WPML that might help to achieve what you were looking for (not having to translate every single event).
If you head over to WPML > Settings > Post Types Translation and select “Translatable – use translation if available or fallback to default language”, you should be able to display non-translated events in all languages.
This also opens all kinds of interesting doors (including using Event Aggregator combined with the Events Calendar and WPML).
Best regards,
Geoff B.
August 3, 2018 at 9:35 am #1589753Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘** For Geoff B. ** – As discussed – WPML batch duplication/ display’ is closed to new replies.
