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

Mesh UI - Add a node to a list of node window shows a different language #319

Open
martinbogaert opened this issue May 27, 2020 · 1 comment

Comments

@martinbogaert
Copy link

Gentics Mesh Version, operating system, or hardware.

  • v1.5.1

Problem

When trying to add a node reference is a list of node for a node contributed in EN (see Schema 1), the node that should be added to the list is displayed in another language. In the example, the DE is shown. DE is not set a default language or fallback language. EN is the default language. Also the node is contributed in 3 languages. (see picture 1-4)

When in the UI, add button is clicked, Mesh UI is sending a POST with a GraphQL query :
query: query ($parent: String, $filter: NodeFilter, $perPage: Long, $page: Long) { node(uuid: $parent) { uuid nodes: children(filter: $filter, perPage: $perPage, page: $page, lang: ["de", "en"]) { totalCount pageCount elements { uuid schema { name } displayName isContainer availableLanguages } } breadcrumb { uuid text: displayName } } }

Why lang variable is a list containing "de" and "en" ?

Expected behaviour and actual behaviour

This windows proposing the list of nodes that can be added in the list should display the list of node in EN.

(picture 1) image
(picture 2) image
(picture 3) image
(picture 4) image

(Schema 1)
{ "name": "testimonial_page", "container": false, "autoPurge": false, "displayField": "id", "segmentField": "id", "urlFields": [ "id" ], "fields": [ { "name": "id", "type": "string", "label": "id", "required": false }, { "name": "testimonials", "type": "list", "label": "testimonials", "required": false, "listType": "node", "allow": [ "testimonial" ] } ] }

@Jotschi Jotschi transferred this issue from gentics/mesh Jun 4, 2020
@martinbogaert
Copy link
Author

on top of that : another small question is : why the popup windows for choosing a node (picture 2) is proposing several node types while the schema is defined to accept only one node type ? You have the list of all nodes in the project but you cannot select them (which seems logic) but why showing them then ?

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

1 participant