Can we have tags under multiple parents?

Hi there

I keep running into this issue: Some tags really belong to more than one parent.

For example, my “Hermione” tag should live under both ​People and ​Harry Potter Novels. But right now, I have to make two separate “Hermione” tags (one under each parent), then tag photos twice. It’s super easy to mess up when bulk editing! :sweat_smile:

Maybe we could let a single tag exist under multiple parents (like a web)

The interface can remain as a tree structure, while allowing the ‘Hermione’ tag to visibly exist under both the ‘People’ parent tag and the ‘Harry Potter Novels’ parent tag simultaneously

That way, tagging a photo once with “Hermione” would auto-cover all its parent categories. Super handy for cross-category stuff like book characters + real-world topics!

Is this technically possible? What do you think?
(translated by DeepSeek)

for such options i move children tag outside.

then when I view ‘people’ or ‘Harry Potter Novel’ tag, 'Hermione’s will not be displayed…

my idea was to do your 3 tags separate:
people
Harry Potter Novel
Hermione

and if you have on photo Hermione: you tag 3 tags people, Harry Potter Novel, Hermione.

Also, for my opinion, your people tag is redundant at all

Hi @LiangWenjian,
digiKam does not support multiple parents for the same tag. We are exploring an idea we are calling “related tags”, but no plans yet.

The idea for “Related Tags” is you can assign an existing tag to another tag as a “related tag”. When the first tag is applied, the system would also apply the related tags. We are also discussing making related tags recusive. For example B is related to A, and C and related B. When applying the A tag, B would be assigned as a related tag. Since C is related to B, C would also get assigned. We are thinking turning recursion on/off would be a user settings.

Would this fill your need?

Cheers,
Mike

@michmill well, after I deep think, this maybe my actual requirements:

  1. Anything tagged with ​’A’ is also belong to ​’B’ and ​’C’, but ​’B’ and ​’C’ aren’t related at all. For example: A = “birds”, B = “animals”, C = “fly”.
  2. When I look at stuff under ​’B’, I want to also see images tagged only with ​’A’ (but not stuff tagged just with ​’C’). Same with ​’C’—show ​A-tagged stuff, but not tagged only with ​’B’.

So a ​’multi-parent tag system’ look like the obvious fix.

But it seems that your idea actually works too? that’s great!

and How would the tags actually show up in the UI though?