Category selection?

Daikaiser

Client
Регистрация
06.09.2011
Сообщения
68
Благодарностей
9
Баллы
8
Hi, I want to change the category of a website from the Input Settings. Since the variable is the name of the category I converted it to a number (for the selection), so I used Switch and Set value, but is there an efficient way to do this? I like spaghetti but not in my templates :p Thanks.

categoryselection.jpg
 

drvosjeca

Client
Регистрация
26.10.2011
Сообщения
512
Благодарностей
455
Баллы
63
why dont you just make it click category name instead of using this big switch, which will probably just crash your template...?
 
  • Спасибо
Реакции: Daikaiser

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
Agree with drvosjeca.
 

Daikaiser

Client
Регистрация
06.09.2011
Сообщения
68
Благодарностей
9
Баллы
8
Hehe so simple and I never thought about it. Like Rostonix says, simple is better. Thanks Drvosjeca!

Edit: I run into an issue when I was trying to use the name. When I test the action it will open the menu but won't select the option. Any idea why it isn't working?
categoryissue.jpg
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)