I have 3 tables: Artworks, Tags, and a "Link Table". The Link Table exists because each Tag may have many artworks, and each artwork may have many tags. I created the relationships between these tables by setting a Tag Id and Artwork Id in the Link Table to ref, and then pointing each to their corresponding table. This generally works really well, except that I can't figure out how to make an Artworks detail page show tags as a deck view, while a Tag details page shows artworks as a gallery view. Here's what I mean:
Tag details looks right:
Artwork details does not look right:
I want it to look like this:
Which I can do by using a SELECT() function instead of REF_ROWS() in a virtual column in the Artworks table. But when I try to add a tag from the inline view using this method it takes me to the Tag form and I don't get a dropdown of possible values (like I do when I use REF_ROWS instead). In fact if I create a new row this way it's easy to create duplicate tags. Anyone know the right way for me to show tags as a deck view in my Artworks detail page. Grateful for the sage advice I always seem to receive here. ๐
Solved! Go to Solution.
Okay, I've tested it and I think this is the correct solution
This video may be helpful.
https://www.youtube.com/watch?v=BtY7ljzD8hI
That video was helpful, but I still can't seem to quite get it right. This is my setup. I can't figure out what I'm doing wrong.
โ
โ
โ
โ
โ
โ
โ
โ
โ
โ
I now have it working. Here are the steps I followed (with the video's help):
I thought the solution I posted above was the answer, but it's not. The inline gallery view is showing all the items instead of just those items with a Tag Id that matches this Tag. I'm having a very hard time figuring out what expression to write for the Gallery view slice so that it only returns those items who have a corresponding entry in the Link Table which also contains the Tag that I'm currently looking at. Does anyone have any pointers?
Okay, I've tested it and I think this is the correct solution
Does this approach allow you to easily relate existing elements? I.e. can you add an existing tag to an item from the item details or item form page? And vice versa from the perspective of a tag?
What I've found is that the resulting user experience is what I would call "passable." I can add tags to an artwork pretty easily. I haven't had great success with removing an artwork from a tag. Apologies if this response is confusing; I'm very loosely in touch with whatever it was I was doing here.
User | Count |
---|---|
23 | |
15 | |
4 | |
3 | |
3 |