1
votes

I am trying to do my website very flexible for translations. Suppose I want to have a news article only in German, but not on the default language (English). How can I do this?

Transl.Orig blank

For example, creating a new News Article and leaving the Transl.Orig blank. However, this causes that in the frontend the news doesn't appear.

Additional Info

  • Using Typo3 v9.5.1
  • Using tx_news
  • Bootstrap Package
2
I don't think this has anything to do with fluid, you might want to remove the fluid tag and add the extbase tagSybille Peters
There is a news issue where there is some more information and where this question is mentioned: github.com/georgringer/news/issues/815Sybille Peters
I have used following extension developed by news authors, it extends Typo3DbQueryParser class function, here you can pass only tables you wanted without parent translation or for all tables, github.com/georgringer/extbase_records_with_no_l10n_parentAshish Patel

2 Answers

1
votes

You can try this extension: https://github.com/georgringer/extbase_records_with_no_l10n_parent

This extension changes the behaviour of Extbase to show also records without a language parent.

0
votes

I have found a good enough solution. We have a folder called "News Articles" where all the articles are being held. Inside of this folder I have added two sub-folders called "DE" and "EN".

Two Folders inside News Articles

Here, I am inserting their respective news articles (News Administration > Folder name (for example, "DE") > Create new news record). I set its Language to [All] (under the Language tab) - you'll notice that the Transl.Orig doesn't appear here.

enter image description here

Note: if you get an error saying something like "-1 is not a system language", it means that you have to configure the config.yaml file. This file should be located under typo3conf > sites > your site > config.yaml

Now, where the real magic happens is at Page > the page where your news articles are located > and open the news content element: enter image description here

Inside, go to Plugin > Settings > Starting Point, click the Folder icon on the left and select the folder "EN" (or "DE", depengin on the languange you are editing).

And that's how I solved it :)