Hello,
I am new here and say at first hello @all :-)
If I do something wrong, please tell me...
My first question:
I searched in the forum, help file, google and so on- but successless.
I want to save a view-setting for all subfolders but not for the parent-folder itself.
I want to do this for several folders/subfolders. The best example is my foto-folder.
The parent folder is "Fotos" and has a lot of subfolders like "1980 holiday Spain". The view in "Fotos" should be "Details".
The view in the subfolders like "1980 holiday Spain" should be "Miniatur #1".
But always when I try do save these settings like this it is saved for all subfolders included the parent folder.
And additionally I want to save the setting for only one folder, that folders are not sorted above files, rather than all files and folders sorted just alphabetically. But only in this one folder, not in the subfolders.
How can I achieve my both wishes?
Please help me with this...
Thanks a lot :-)
Surya
Save view-settings for all subfolders but not for parent-folder itself
-
Surya
- Posts: 27
- Joined: 05 Jul 2020 22:17
-
highend
- Posts: 14926
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Save view-settings for all subfolders but not for parent-folder itself
1st: viewtopic.php?p=135516
2nd: At least achievable by using a CEA (custom event action):
General - Custom Event Actions - Changing Locations - After painting the file list, Run script
2nd: At least achievable by using a CEA (custom event action):
General - Custom Event Actions - Changing Locations - After painting the file list, Run script
Code: Select all
$folder = "D:\Tools";
if (<newpath> == $folder) {
if (get("#333")) { #333; }
} else {
if !(get("#333")) { #333; }
}
One of my scripts helped you out? Please donate via Paypal
-
klownboy
- Posts: 4459
- Joined: 28 Feb 2012 19:27
- Location: Windows 11, 25H2 Build 26200.8037 at 100% 2560x1440
Re: Save view-settings for all subfolders but not for parent-folder itself
2 screen shots, one for the main folder settings in FVS and the second one for the sub folders. Look at the "Folder to apply the settings to:" and the "Applied settings" and modify to your needs. For the main folder FVS, do not check "Include subfolders", but for the FVS for the subs, check to "Include subfolders" (and note the *). Set your view for the subs and the main separately before you save them as a FVS. For example, you may want the main folder as detail view and all the subs in a thumbnail view.
To see the attached files, you need to log into the forum.
-
Surya
- Posts: 27
- Joined: 05 Jul 2020 22:17
Re: Save view-settings for all subfolders but not for parent-folder itself
Thanks klownboy, that works :-) I made it before just the same, but didn't know of the *- so it seems, that was the reason why it didn't work before.klownboy wrote: ↑23 Apr 2023 18:52 2 screen shots, one for the main folder settings in FVS and the second one for the sub folders. Look at the "Folder to apply the settings to:" and the "Applied settings" and modify to your needs. For the main folder FVS, do not check "Include subfolders", but for the FVS for the subs, check to "Include subfolders" (and note the *). Set your view for the subs and the main separately before you save them as a FVS. For example, you may want the main folder as detail view and all the subs in a thumbnail view.
Thanks highend,highend wrote: ↑23 Apr 2023 18:42 1st: viewtopic.php?p=135516
2nd: At least achievable by using a CEA (custom event action):
General - Custom Event Actions - Changing Locations - After painting the file list, Run scriptCode: Select all
$folder = "D:\Tools"; if (<newpath> == $folder) { if (get("#333")) { #333; } } else { if !(get("#333")) { #333; } }
but I didn't get it to work- maybe there is a mistake in my script.
The path of the folder, where the sorting should be only by alphabet, ignoring if folder or file, is "A:\". So I wrote your script in this way:
Code: Select all
$folder = "D:\Tools";
if (<A:\> == $folder) {
if (get("#333")) { #333; }
} else {
if !(get("#333")) { #333; }
}-
highend
- Posts: 14926
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Save view-settings for all subfolders but not for parent-folder itself
Code: Select all
$folder = "A:";
if (<newpath> == $folder) {
if (get("#333")) { #333; }
} else {
if !(get("#333")) { #333; }
}
One of my scripts helped you out? Please donate via Paypal
-
Surya
- Posts: 27
- Joined: 05 Jul 2020 22:17
Re: Save view-settings for all subfolders but not for parent-folder itself
Ahh, okay ;-) Now it works- thanks a lot!highend wrote: ↑23 Apr 2023 21:32Code: Select all
$folder = "A:"; if (<newpath> == $folder) { if (get("#333")) { #333; } } else { if !(get("#333")) { #333; } }
XYplorer Beta Club