Advice on which is more efficacious

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Advice on which is more efficacious

Post by aurumdigitus »

To those who are knowledgeable, now that Load/Save Layout has become available via Menu | Window, when setting up views that involve complex and intricate columns is it better to save that with Layout OR the previously published code from ADMIN?

Code: Select all

//Load Column Layouts
$cs = listfolder("<xydata>\Columns", "*.txt", 5);
  $cs = replace($cs, ".txt", "");
  $c = popupmenu($cs);
  if ($c) {columnlayout($c)};

nerdweed
Posts: 648
Joined: 25 Feb 2012 07:47
Location: XY64 Latest Beta , Win 11, 96dpi, 100%

Re: Advice on which is more efficacious

Post by nerdweed »

These are two different stuff.

One is to save column layouts - Name, Ext, Size, Etc / Name, Tag, Label, Comment / Name, Size
The other is to save the layout - Tree - List - Catalog / Tree - Catalog - List etc

While you are at it, a similar script is present to load/save column layouts as well which would do effectively the same thing as the menu option. But the scripting option may give you more control with some tweaking (eg you can define a naming pattern and focus on loading only those patterns.

http://www.xyplorer.com/xyfc/viewtopic. ... 75#p105442

Code: Select all

$cs = listfolder("<xydata>\Layouts", "*.txt", 5);
  $cs = replace($cs, ".txt", "");
  $c = popupmenu($cs);
  if ($c) {loadlayout($c)};

aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Re: Advice on which is more efficacious

Post by aurumdigitus »

@nerdweed - Thank you for the clarification. Wasn't really sure how much overlap there was between the two and wanted advise before playing around and possibly shooting self in foot. :wink:

Have been registered a long time but still find it hard to keep up with all the advances. Sometimes wish Don would slow down.

BTW - you have a great username; almost as good as mine! :lol:

nerdweed
Posts: 648
Joined: 25 Feb 2012 07:47
Location: XY64 Latest Beta , Win 11, 96dpi, 100%

Re: Advice on which is more efficacious

Post by nerdweed »

While re-reading the post, I do feel that I missed some parts that should have been covered.

As you can see the scripts are only for loading the layouts, but I think Scripting commands for saving are also available.

You may have already found out, that column layouts can be loaded and saved by Right Clicking on the column Headers.

Code: Select all

BTW - you have a great username; almost as good as mine! 

:wink:

aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Re: Advice on which is more efficacious

Post by aurumdigitus »

You may have already found out, that column layouts can be loaded and saved by Right Clicking on the column Headers.
Actually, that had escaped my cognition. Thanks for the heads-up. Had been using the rather more laborious Menu | View | Columns.

Post Reply