This script adds the ability to show DOpus panels for specific folders.
It does this by using DOpus's built in Styles feature. As you navigate in and out of the target folder the styles will be applied, enabling and disabling the desired features.
We need to create at least two Styles. One StyleSetterDefault used when leaving the target folder. One other with the setting you would like to enable used when entering the desired folder. We then need to create a file in the target folder called folder.xml. This will contain the name of the style to show for that folder. Finally there is a button to enable the StyleSetter as you prob don't want it on all the time.
StyleSetter.js.txt v0.5 (4.1 KB)
Button to enable StyleSetter (only needed if config RequireEnabledVariable is set to true).
<?xml version="1.0"?> <button backcol="none" display="icon" label_pos="right" textcol="none"> <label>Enable Style Setter</label> <tip>Enable the style setter script for this window.</tip> <icon1>#default:viewpanelayout</icon1> <function type="normal"> <instruction>@toggle:if $lst:StyleSetterEnabled</instruction> <instruction>@ifset:$lst:StyleSetterEnabled</instruction> <instruction>@set lst:StyleSetterEnabled</instruction> <instruction>@ifset:else</instruction> <instruction>@set lst:StyleSetterEnabled=true</instruction> <instruction>@ifset:common</instruction> </function> </button>
Example: to show the Viewer Pane
StyleSetterDefault This is the style that will be set when you leave the target folder.
Note how all this style does is turn off the desired feature.
ShowViewer The target style, this that will be set when you enter the target folder folder.
Note how all this style does is turn on the desired feature.
folder.xml for target folder. To be created in the target folder.
<?xml version="1.0" encoding="UTF-8"?> <dopus> <style>ShowViewer</style> </dopus>
Hiding the folder.xml file
Click to see how to hide the folder.xml in the dopus lister
The folder.xml file can be hidden using the Global Filters feature of DOpus.
Methods of hiding file
- Set the file as hidden, and enable Hide hidden files in the Global Filters
- Add the name of the file *Default Folder.xml to the Global Wildcard Filter. This way you can keep hidden files visible.
If the file is hidden it will be indicated on the Status Bar, where clicking the hidden section will temporally disable the filter and show the file.
This was requested here Panels only for one (or more) folder