Bug description
I've added a menu_columns button group to my nav_group blueprint.
I've set it to be conditional. I only want the button group to show if the depth = 1
The conditional hides it everywhere, regardless of depth?
This is the blueprint
handle: menu_columns
field:
options:
-
key: one
value: '1'
-
key: two
value: '2'
-
key: three
value: '3'
-
key: four
value: '4'
default: one
type: button_group
display: 'Menu Columns'
always_save: true
if:
depth: 'equals 1'
How to reproduce
40 Second video shows the issue and setup.
https://github.com/user-attachments/assets/44566d23-a608-4997-8658-3ea019fac254
Logs
No response
Environment
EnvironmentApplication Name: StatamicLaravel Version: 11.29.0PHP Version: 8.3.8Composer Version: 2.6.5Environment: localDebug Mode: OFFURL: website.testMaintenance Mode: OFFTimezone: America/New_YorkLocale: enCacheConfig: NOT CACHEDEvents: NOT CACHEDRoutes: NOT CACHEDViews: CACHEDDriversBroadcasting: logCache: redisDatabase: sqliteLogs: stack / singleMail: logQueue: redisSession: fileLivewireLivewire: v3.5.12StatamicAddons: 5Sites: 1Stache Watcher: EnabledStatic Caching: DisabledVersion: 5.34.0 PROStatamic Addonsjonassiewertsen/statamic-jobs: 1.5.0jonassiewertsen/statamic-live-search: 2.1.1jonassiewertsen/statamic-livewire: 3.8.1statamic/collaboration: 1.0.0visuellverstehen/statamic-anchor-navigation: 1.0.0
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
Bug description
I've added a
menu_columnsbutton group to mynav_groupblueprint.I've set it to be conditional. I only want the button group to show if the
depth = 1The conditional hides it everywhere, regardless of depth?
This is the blueprint
How to reproduce
40 Second video shows the issue and setup.
https://github.com/user-attachments/assets/44566d23-a608-4997-8658-3ea019fac254
Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response