Page 1 of 1
Advice on which is more efficacious
Posted: 18 Jun 2014 21:04
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)};
Re: Advice on which is more efficacious
Posted: 19 Jun 2014 09:49
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)};
Re: Advice on which is more efficacious
Posted: 19 Jun 2014 14:55
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.
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!

Re: Advice on which is more efficacious
Posted: 19 Jun 2014 16:12
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!

Re: Advice on which is more efficacious
Posted: 19 Jun 2014 19:54
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.