M
M
Max2018-09-24 10:35:22
OctoberCMS
Max, 2018-09-24 10:35:22

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

1 answer(s)
A
Alexander Shapoval, 2018-09-25
@AlexanderShapoval

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 question

Ask a Question

731 491 924 answers to any question