Tag clouds and “Click and Tag”

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
justerman
Posts: 5
Joined: 09 Nov 2018 10:19

Tag clouds and “Click and Tag”

Post by justerman »

I’ve worked out how to use taglist() to load alternative tag clouds but it seems that taglist() has no effect on the list offered by “Click and Tag”. That is not what I would have expected. Am I missing something?

Is there a clever way to use "Click and Tag" productively with long tag lists?

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Tag clouds and “Click and Tag”

Post by highend »

That category adds all existing tags from the tag database, not tag lists (their entries aren't necessarily in the db)

Scripting could help but that would require more clicks (one click / keyboard shortcut to invoke the script and probably a double click or multiple single ones
depending on how they are displayed (menu or an inputselect() window))...
One of my scripts helped you out? Please donate via Paypal

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Tag clouds and “Click and Tag”

Post by highend »

It could look like this via:

Code: Select all

    $tags = taglist();
    if !($tags) { status "No tag(s) in taglist, aborted!", "8B4513", "stop"; end true; }
    $tags = regexreplace($tags, "(.+?)(,|$)", "$1|$1|:tagsadd,");
    $sel = inputselect("Choose tag(s) to apply", $tags, ",", 1+2+32+64+1024, , 300, 600);
    tagitems("tags", $sel);
taglist.png
taglist.png (6.9 KiB) Viewed 524 times
An advantage over the catalog, multiple tags could be applied in one step. If you don't want this,
remove the +2 in the line beginning with $sel =
This would remove the checkboxes...
One of my scripts helped you out? Please donate via Paypal

justerman
Posts: 5
Joined: 09 Nov 2018 10:19

Re: Tag clouds and “Click and Tag”

Post by justerman »

Thanks Highend, firstly for confirming my understanding, and secondly for a proposed script. I'm going to see where that takes me.

Post Reply