Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Bug reports and fixes
.
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
Temporarily hide a language?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Temporarily hide a language? (Read 5294 times)
seadhna
Hero Member
Posts: 507
Temporarily hide a language?
«
on:
September 28, 2020, 15:32:09 »
Hi there, is it possible to temporarily remove a language in the Site Settings in order to unpublish an entire lang version of the site content, but then add it back and have everything restored? i.e. I am wondering - if I remove a language from the 'site languages' under 'locale' in the site settings, does all the content in that language just get hidden or does all that content get deleted?
Logged
webgift
Elxis Team
Hero Member
Posts: 4193
Re: Temporarily hide a language?
«
Reply #1 on:
October 03, 2020, 16:13:32 »
Please share the condition where you could hide/show the particular language.
Don't think that you could actually add/remove a language.
Logged
Elxis Team •
Custom web design [EN]
-
[EL]
•
.GR Registrar
seadhna
Hero Member
Posts: 507
Re: Temporarily hide a language?
«
Reply #2 on:
October 05, 2020, 16:21:22 »
Hi webgift, I think maybe you don't understand the question? It's very easy to add or remove a language under 'Site Settings' as I describe.
Logged
webgift
Elxis Team
Hero Member
Posts: 4193
Re: Temporarily hide a language?
«
Reply #3 on:
October 05, 2020, 17:10:58 »
Hello seadhna,
Quote from: seadhna on September 28, 2020, 15:32:09
Hi there, is it possible to temporarily remove a language in the Site Settings ...
Still can not understand the condition you need something like that. The content
won't be deleted when uncheck the language from there.
Logged
Elxis Team •
Custom web design [EN]
-
[EL]
•
.GR Registrar
datahell
Elxis Team
Hero Member
Posts: 10356
Re: Temporarily hide a language?
«
Reply #4 on:
October 05, 2020, 19:05:12 »
If you want to delete the translations to a specific language you can do it from the translations manager, or if the content is large enough connect to your database via the PHP My Admin and execute a query like that:
DELETE from `elx_translations` WHERE `language` = 'XX';
Where "XX" is the language you want to delete. Example: en, es, de, it, ru, etc...
Be careful: This action is not reversible!
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
seadhna
Hero Member
Posts: 507
Re: Temporarily hide a language?
«
Reply #5 on:
October 06, 2020, 10:08:54 »
If the content won't be deleted that is good! I am hoping that's the case. But I am afraid to remove the language from the 'Site Settings' without confirming with you guys. The situation is this: an English-language version of the site is launching a certain time, but a German-language version of the site does not launch until a few days later. So I am wondering how to HIDE the German-language content without deleting it. I definitely do not want to delete anything. Just hide it.
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: Temporarily hide a language?
«
Reply #6 on:
October 06, 2020, 20:49:30 »
Don't worry, the translations wont get delete if you unpublish a language from Elxis general settings. However if the language is not published you will not be able to add new translations to that language (German in your case). You will have to enable the language for a while, add your translation, and unpublish it again when finish.
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
seadhna
Hero Member
Posts: 507
Re: Temporarily hide a language?
«
Reply #7 on:
October 09, 2020, 17:58:47 »
Great - thanks!
Logged
seadhna
Hero Member
Posts: 507
Re: Temporarily hide a language?
«
Reply #8 on:
October 12, 2020, 11:47:34 »
Just to flag, I got a nasty shock when I implemented this: any pages I edited in English while the other language was unpublished - the other language got deleted. When I republished the language, all that content was gone. Only pages I hadn't edited while the language was unpublished remained unharmed. Just something to be aware of - anyone who reads this.
Logged
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
Temporarily hide a language?