47
Parent & child relationship/field
Yannis Kadiri
The easiest example to explain is laid out like this, we have the following models:
- Make
- Model
- Sales
In this context we are talking about cars, so the make would contain a list of car manufacturers (Subaru, Toyota, Ford, Chevy, ect). Thus the model would contain some options like WRX, GT86, Mustang, Corvette.
The way we would setup the sales model would be a oneWay relation to each make/model, and in the context of this request when we create a new "sale" we would select the make (say subaru) now when I go to select the model I should only be able to see/select the "WRX" model since it's made by Subaru.
I should not be able to select "Toyota" "Mustang" as that car doesn't exist.
See for more information: https://github.com/strapi/strapi/issues/8708
Activity Feed
Sort by
M
Muhammad Zulqarnain Sabir
it's a very good feature, any expected launch data?
Ahmed Soliman
It's very important feature, I guess it's almost needed in any bigger than blog web application.
Yannis Kadiri
Not yet, we'll update you when that's the case.
P
PRASAD PATEWAR
Yannis Kadiri Any updates on this feature ? or any custom way to implement this ?
Thank you.
Abdubek Zholay
very important functionality, we need this
Kevin Piazzoli Felix Perez
any progress or any way to do it manually?
Jonas Sandstedt
This would be great. Here is a use case for a information site:
You have a contact page, you want the client to be able to add sub pages, ex a certain office, or a department. Ex:
- Home
- Contact
-- Offices
--- Gothenburg Office
--- Stockholm Office
-- Open Positions
A big UX thing here is to be able to visualize this hierarchy in the pages list too. Ex with an expandable accordion to show all child pages. This allows to have thusands of pages in an organized way.