Teapot
Well-known member
Hi all! I've spent the last evening trying to implement content tags in a custom gallery add-on, and I'm having trouble connecting a few of the dots.
I've added the relevant template and JS, implemented a MEDIUMBLOB 'tags' column in my add-on's custom table and datawriter, and implemented a TagHandler class (and added it to the content cache), but I still can't seem to make tagging trigger in any way - submitting the form doesn't actually add them to the database. Specifically, I'm not sure how to instruct the tags system that my content is being tagged and to update the records accordingly.
Would someone who's done it be so kind as to list the rough steps I need to go through to get this all sorted? I've been told it's a very simple process, and nearly all other handlers are, so I think I'm just missing a small piece of the puzzle.
Thanks for reading!
I've added the relevant template and JS, implemented a MEDIUMBLOB 'tags' column in my add-on's custom table and datawriter, and implemented a TagHandler class (and added it to the content cache), but I still can't seem to make tagging trigger in any way - submitting the form doesn't actually add them to the database. Specifically, I'm not sure how to instruct the tags system that my content is being tagged and to update the records accordingly.
Would someone who's done it be so kind as to list the rough steps I need to go through to get this all sorted? I've been told it's a very simple process, and nearly all other handlers are, so I think I'm just missing a small piece of the puzzle.
Thanks for reading!