I want to setup Laserfiche so it only shows the Name by default for every folder for everyone. And then there is one other folder that should show Name and File Name (a custom field).
Using the following links...Choose-columns-via-SDK and custom columns for subfolders I came up with the following XML to add to the Everyone group. I added the attribute [xmlColumnDisplay]Data and put the following XML into the value.
<?xml version="1.0" encoding="utf-16"?> <columndisplay generatedby="Laserfiche Web Access 10"> <layouts> <layout id="1"> <columns> <column Width="229" ColCode="N" Type="System" /> </columns> </layout> <layout id="2"> <columns> <column Width="107" ColCode="N" Type="System" /> <column Width="455" Field="File Name" ColCode="File Name" Type="Field" /> </columns> </layout> </layouts> <allfolders layoutid="1" /> <folders> <folder id="1961" layoutid="2" /> </folders> </columndisplay>
I am getting some behavior I wasn't expecting.
- Is there any reason the above XML is invalid? This seems to work for some users but not for other users. I am guessing that there is some conflict with the xmlColumnDisplay settings for the specific user but I am not sure how to identify the conflict (or even if there is one).
- How does Web Access determine whether the columns the user is picking goes into the <allfolders> node vs. the <folders><folder id="" layoutid="" /></folders> node. It seems to be inconsistent, sometimes when the user picks columns from the UI it stores those settings in the <allfolders> node while other times it saves it into the <folders> node?
- How unique does the layout id need to be? In other words, if I create a layout in the Everyone group with an ID of "1" can I also create a layout for a specific user with an ID of "1"? Also, can I create a layout with an ID of "1" for multiple users (other than Everyone group)?