[drupal-devel] Core Folksonomy: Not Ready for term_node.uid?

Gerhard Killesreiter killesreiter at physik.uni-freiburg.de
Thu Mar 17 07:23:02 UTC 2005



On Wed, 16 Mar 2005, Morbus Iff wrote:

> > I suggest to rewrite it to act as follows:
> >
> > - a node it passed, it has a couple of tids attached (or not).
> > - select all the tids that are attached to the node in the DB.
> > - add those tids that were not there before.
> > - remove tids that aren't there anymore.
> >
> >>With the addition of the term_node.uid though, it becomes
> >>not only "what nid/tids do I delete?", but also "what uid's nid/tids do I
> >>delete?". And THAT's the big problem.
> >
> > Not if rewritten as above. I assume that tids are still unique per node.
>
> tids would be unique per nid per uid:

Hmmm.

>   nid  |  tid |  uid
>   ------------------
>   17   |    3 |    9
>   17   |    3 |   12
>   17   |    4 |   12
>
> and so on.

If you insist on adding terms twice (why?), you'll also need to
transport the uid info through the editing process. Makes things more
complicated.

> > You can easily make a list of all terms (maybe sorted by user) and a
> > click on the one you want will remove that one (after confirmation).
>
> Where would this screen be?

Maybe on an extra folksonomy tab similar to revisions?

Cheers,
	Gerhard




More information about the drupal-devel mailing list