Answer the question
In order to leave comments, you need to log in
How to extract fields from fields.yaml in OctoberCms, for example from checkboxlist?
category:
label: 'Categories'
span: auto
options:
1: Houses
2: Apartments
type: checkboxlist
"Houses, apartments" values for use on front, lists
Answer the question
In order to leave comments, you need to log in
That's right - it should be a separate model. When you need to add "Offices" or "Mobile Homes" - you don't have to edit the code, + you can enable multilingualism and filter real estate (or movables) by building type. If you write hardcode, then you will have to write hardcode on the front
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question