Hi
I have in blueprints.yaml in my theme the following:
latestposts:
type: toggle
label: Enable Latest Post in Sidebar
highlight: 1
default: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
If I want to filter the content if it is activated or deactivated (with if sentence), with theme_config.latestposts.enabled it does not work, however with theme_config.latestposts == true it works correctly.
Why is this happening? Is there something I am doing wrong?
Thanks.