Create an article for 2 categories
Hi
I'm actually working on a module where an entry A can be linked to 2 differents entries, like 2 categories for 1 article
Is it first possible to do that (about categories and articles) without tricking the model ?
Thanks for answer
Comments
On 1.0, there is a has_many model property that can be used in which you can make multiple many to may associations. 1.0 also has a built in categories and tags module you can use (categories being more for foreign keys and tags being more for many to many relationships). There is more info on the relationship additions to 1.0 in the updated 1.0 user guide:
https://github.com/daylightstudio/FUEL-CMS/tree/1.0
https://github.com/daylightstudio/FUEL-CMS-User-Guide-Module
I'll check the 1.0 version, but I maybe found the correct way to do that, create a loop in a before_save method and add entries to my database