- Issue created by @pearls
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Hi @pearls - thanks for logging this issue.
Can you share your view configuration - just the contextual filter if possible.I'm fairly certain you need to use a revision ID if the entity-type is revisionable.
Lee
Hi Lee,
Yes , You're right. It'a about revisions.I created two test.
First one
Parent:Course
Child:Lesson
Create new revision option: NoIt worked perfect.
Then I created new one
Second example
Parent:Teacher
Child:Student
Create new revision option: CheckedWhen I create a lesson-course or class-teacher contents I saw the same error.
The same error appears in some of the contents(lessons) in the first example, which I do not understand.I also created another block with revision id but the result is the same.
Then I deleted class-teacher contents and also content types.
Just only first example remained.Now I can see sibling lessons again.
I couldn't understand why another type of content being revisable would cause an error.
So, any advice please. Thanks
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
This is a duplicate of β¨ Unable to display list of children in views Needs work but for 5.x
Do you have scope to apply patches for Drupal core? If so the patch on #2847233: Allow entity field value as argument_default β will give you a new option under 'default value' and rather than 'content ID from URL' choose 'Field value from content entity' and then choose revision ID.
Longer term I think the best approach would be similar to what β¨ Unable to display list of children in views Needs work does but for 5.x
I tried your advices. This patch is not for v5 and there has been no progress after a long time..It didn't work.
Also I tried this module ( Views Default Argument: Entity Field Values β - similar to your advice).After three days, my searches and different attempts have not yielded any results.
I guess I have to go back to book module.
I have given up.
Thank you very much for your support.- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
The patch for #2847233: Allow entity field value as argument_default β is for Drupal core. I'm using it on a university site to achieve what you're attempting.
I don't have time to work on a more solid fix (aka β¨ Unable to display list of children in views Needs work ) at present. But if we can get something working with the core patch (like I have), that might be enough.
Feel free to ping me on slack if that helps.