You need to use a custom column.
My solution will only be helpful if your "file.doc"s are
direct children of "subfolder"s (not located deeper than outlined)
and have only one tag.
WARNING: This can make browsing in XYplorer slow if you have a lot of files in a lot of folders, and a lot of those folders in the active view.
first copy the following code.
Code: Select all
Snip: CustomColumn 1
XYplorer 14.80.0225, 2/4/2015 12:29:43 AM
Action
ConfigureColumn
Caption
1st Child Tag
Type
3
Definition
//returns the first tag of the first tagged first-level child
$lst = listfolder(<cc_item>);
foreach($itm,$lst){
$t = gettoken(tagitems(tags,,$itm),1,",");
//$t = tagitems(tags,,$itm);
//the line above will return all tags of first tagged child if you remove it's preceding //
if ($t != ""){ break; }
}
return $t;
Format
0
Trigger
1
Item Type
1
Item Filter
Now enter the following code into the addressbar and press ENTER. (Make sure the previous code is still copied to clipboard before pressing ENTER)
now add a new column to the list :Menu -> View -> Columns -> Add Column. A new (Undefined) column will be added to the view.
Right click on it's title/header, choose "Select Custom Column", then pick "1st Child Tag".
Info: this column script will parse all children of a listed folder, get the first child that is tagged (if any), and return the first tag of that child.
It can be modifed to return ALL tags of the first tagged child of a listed folder. Look in the script.
It can also be modified to match the tags of all children against a taglist, and only return matched tags.
If can also be modified... you get the idea.
ed: Yay, my 1-and-a-half-thousand-th post!