This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
code200.miha
I want to enable template configuration where user can choose among Blog Categories. Meaning my template config should be able to generate generate list of available categories.
I know this can be done in theme.yaml
by using type dropdown (https://octobercms.com/docs/backend/forms#field-dropdown)
How do I get options populated? Where to put getCategoriesOptions
function? How to extend ThemeData
class?
Thanks!
1-1 of 1