psenik
psenik
TCTwill CMS
Created by psenik on 7/25/2023 in #👊support
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.
4 replies