TC
Twill CMS•17mo ago
psenik

Selecting category and subcategory(its childs) for item in form

Hello guys, Situation I have a situation with nested categories. We have a restaurant and our web is power by Twill 2. So at first, I cannot find documentation for this version of twill and also, upgrade is super hard, because There are some technical issues on our lightweight shared server. Idea 1.We have standard menu full of food and drinks and we need to organize it better way then it is now. So I've created nested menu categories: Food(lvl1): salads, pasta, meat(lvl2), Drinks(lvl1): Beer, Wine, limo, cocktails(lvl2). No problem, categories works and they are nested. 2. When I'm creating new item in menu, I'm filling name of item, price, and of course, I want to select level one(Food, Drink, Special Offer, ...) and based on this selected first level I want to display second select which will show me childs on this first level option. Selectbox 1: Food; Selectbox 2: should display its childs Salads, Soups, Pasta, Meat.... Problem I have no idea how to load second selectbox based on first one. Is there anyone who knows how to solve this? I've tried to find around a google but I suppose its a classic situation where I just dont know how to ask a question.
3 Replies
kallefrombosnia
kallefrombosnia•17mo ago
Twill
Documentation – Twill
Twill — An open source CMS toolkit for Laravel
kallefrombosnia
kallefrombosnia•17mo ago
So basicly products are third nested items in your nested module? If I understand this right.
psenik
psenikOP•17mo ago
Oh god! It sounds like I've had a really bad point of view. And also, looks like youre right! Thank you 🙂 And also, thanks for docs link
Want results from more Discord servers?
Add your server