From my experience, that only works, as long as you have all your child nodes on the same page in the list view. So if you have a page size of 10, and have 20 ingredients, og 50 comments. You might end up with page 1 of your listview containing 10 ingredients and no comments. Page 2 could have 4 comments og 6 ingredients etc. etc.
Multiple types of Child Items
I am making a website where a node can have multiple child-types and I want to be able to group them in the "Child items" editor.
Is that possible?
Hi Niels
What did you mean the "Child items" editor?
There is a list view for child nodes - https://24days.in/umbraco-cms/2016/custom-list-view-layouts/
Alex
Yes its that.
Right now I have 2 doctypes as childs and I want them as 2 lists and not one.
check this:
https://github.com/OPTEN/Opten.Umbraco.ListView
Thanks... I will :)
YES!! I found the solution. Just need to code my custom layout controller so I can show 2 lists with separate document type
Hi Niels
Thanks for sharing with our community the solution!
Have a great day.
The solution is (I only show the nessary code)
controller
html file
and in the next table
when you understand it its very easy :D
From my experience, that only works, as long as you have all your child nodes on the same page in the list view. So if you have a page size of 10, and have 20 ingredients, og 50 comments. You might end up with page 1 of your listview containing 10 ingredients and no comments. Page 2 could have 4 comments og 6 ingredients etc. etc.
Yes there can be a problem. I havent found out yet how to make 2 tabs - one with ingredients and one with comments.
is working on a reply...