Coloring files based on extension through a Toggle button in Directory Opus 13

I'm trying to color the files based on their extension in Directory Opus.
I had it working for years in DO 12, through a specific Folder Format, that was activated/deactivated through the push of a button. When I imported my DO 12 configuration into DO 13 it stopped working (among other things). I discovered that I was relying in DO12 on the Labels tab in the Folder Format dialog but that tab seems to have disappeared in DO 13! Hence why my config does not work anymore.

How can I do this. First in terms of configuration within Preferences and second in terms of a script that I can attach to a Toggle button?

I've tried various possibilities, such as Filter Labels in Label Assignment but I don't know how to activate/deactivate these Filter Labels through a script command.

Any help is welcome! I presume that's a very common issue.

The labels have moved into a new home in Preferences / Labels.

You can set up a label in Preferences / Labels / Label Assignments like this:

and toggle it with a button like this:

Set ENABLELABELFILTER=myNewFilterLabel,toggle

Those have moved to Preferences / Labels / Label Assignments / In Specific Folders.

Wonderful! Thanks a ton! It works. I had found how to set the filter, but not how to activate it. Super thanks for the fast reply. Never thought I would be helped so quickly! Cheers

Thanks Leo!