Hi there,
I'm having trouble with a view requirement not working as expected in my DeluxeMenus configuration. I'm trying to toggle the visibility of a menu item based on two placeholders from the BetterTeams plugin: %betterteams_rank% and %betterteams_open%.
Here's a simplified version of the code:
view_requirement:
requirements:
type: string equals
input: '%betterteams_rank%:%betterteams_open%'
output: 'Owner:true'
Even when I don't meet the requirement (for example, I am not an Owner or the team isn't open), the item is still visible in the menu.
I also tried splitting the requirement into two separate ones, but I couldn't get it to work either.
Is there something wrong with the way I'm using string equals with two placeholders combined with a colon? Or is there a better approach to check both conditions at once?
Any help would be greatly appreciated. Thank you!
Here is the full code
https://paste.helpch.at/doyutegani.less