Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to get content of languages ? #64

Closed
issibi opened this issue May 30, 2020 · 2 comments
Closed

how to get content of languages ? #64

issibi opened this issue May 30, 2020 · 2 comments

Comments

@issibi
Copy link

issibi commented May 30, 2020

in manual it says:
Specify the GET-parameter L with the language UID

I could not find out how this works.

Example:
I have a site Setup with /de (L=0) and /en (L=1)

In TS i have:
plugin.tx_rest.settings {
languages {
de = 0
en = 1
}
}

How to get the content for the german language ?
Something like this does not work
domain.com/rest/VirtualObject-Content/0
domain.com/rest/VirtualObject-Content/L/0

@cundd
Copy link
Owner

cundd commented Jun 1, 2020

TLDR: This is not possible with VirtualObjects.

VirtualObjects are a special construct. They are more like a raw database query, rather than a regular TYPO3 Extbase model. The problem is, that the VO-system has no knowledge of the language of a record.

I'm currently looking for someone to sponsor the implementation of a better system to fetch pages and content (https://rest.corn.rest/_Initiatives/Headless/).

@issibi
Copy link
Author

issibi commented Jun 1, 2020

I see, thnx for info. Since the systemLanguageUid is in the JSON we will use this info for now.
Thnx for this great extension.

@cundd cundd closed this as completed Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants