wardrobecms / core-archived

Wardrobe Core Files

Home Page:http://wardrobecms.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tags suggestion

JasonMortonNZ opened this issue · comments

Just firing a suggestion at you. I think having a separate database table for tags would be best. With this we could create a many-to-many relationship between a post and tags, using a post_tags pivot table. What do you think? If your keen, I'll put something together and send through a pull request?

There was a reason for it being setup like it is. I am thinking I went this route because when editing a post the tag plugin didn't have a way of passing the id so you would have to do all the extra queries to see if the tag existed and so forth before saving.

With that said I'm not against using a pivot but we need to ensure the scenario above is accounted for.