Goal: using the Custom Column, List of Icons to show multiple icons on same row based on how the file is tagged using #Tags
is this possible? is my code in error? --- below is the code/script I am currently with (not working, it shows only one icon (should be two based on example), and also appears on every row). I've attempted this script in multiple ways, none have worked consistently. Any ideas/help?
fyi - using the latest xyplorer stable ver.18.50.0200
Code: Select all
//adds multiple icons based on tags
$item = tagitems("tags");
$iconlist = " ";
//Tag:_OftenUsed
if (strpos($item, "_OftenUsed") != -1)
{
if ( $iconlist != " "){$iconlist = $iconlist .";BlockGreen.ico";}
if ( $iconlist == " "){$iconlist = "BlockGreen.ico";}
}
//---
//Tag:_personal
if (
strpos($item, "_personal") != -1
)
{
if ( $iconlist != " "){$iconlist = $iconlist .";BlockRed.ico";}
if ( $iconlist == " "){$iconlist = "BlockRed.ico";}
}
//---
return $iconlist;
XYplorer Beta Club