Elxis CMS Forum

Support => Technical support => Topic started by: bully on June 13, 2019, 05:34:38

Title: Translations
Post by: bully on June 13, 2019, 05:34:38
Is there somehow a way, to hide/not show/not list pages, modules .... who have no base language?
Or the other way around - only show pages, modules for ONE or TWO languages only?

I know, that reads nonsense, but currently I need some pages/links/modules .... only to show up in ONE language, they don't exist in the other languages   (the same or similar as before Elxis 4)

see below:
------------------------------------------------
english                        -> 1 - 2 - 3 - 4
other language          -> 1 - 2 - 5 - 6 - 7
another language      -> 1 - 3 - 4 - 6 - 7
-----------------------------------------------
as in above: page 1 should show the translation of 1 in all 3 languages, but 2 should only be visible for 2 languages and 5 again only for one language. 7 should NOT show in english.

The problem: not all pages/modules should be always showing for each language, other pages, should display the original content, if no translation is entered (same as now in elxis 4& 5)

Is there a way, to get this done, e.g by deleting a language from the page/module? I would not mind, if that must be done in the databse.

bully
Title: Re: Translations
Post by: michalis1984 on June 13, 2019, 11:50:47
For pages no, but for module is easy in template level.

Just assign logic in your template to display a different module according to current language.

And i just now realise isnt that easy to find the module id in elxis 5 :( because isnt displayed in the modules list as in elxis 4.
Title: Re: Translations
Post by: bully on June 13, 2019, 12:07:09
Hi  michalis,

I see it so, that pages and modules are dealing pretty much the same with the languages. Didn't have such need since ages. But this is a rebuild of one, done somehow elxis 2008???? or even prior - one, which still could run and install modules from joomla. That was one of my first sites build in elxis. There is no more access to the actual backend... and all pages throwing endless errors ...

At that time, it was possible to add a single language/flag to each ?  and that was, when it did show up.

How you would do that with a module?  It's most likely the same for a page. If it really works, share it here. Modules are still numbered (I hope, don't know for sure. Still could look up the number in the database ?)

Because if it does work, then it also works for pages. Share it please

bully