These are chat archives for locomotivecms/v3

23rd
Jan 2017
S Tunji Turner
@stunjiturner
Jan 23 18:05
Can content_types be recursive, like Mac is the parent for MacBook although they are both brands
Manu
@manuchap
Jan 23 18:40
I'd say they're more of an iterative function mathswise since your models instances are finite (not declarative as in a math recursion).
As of parenting, your models (content_types) can be children (belongs_to operator) to a parent model that points to them.
In your example brand would be Apple, Mac would belong_to Apple & Macbook would belong_to Mac
Then Apple woud have_many Macs & Macs would have_many Macbooks
S Tunji Turner
@stunjiturner
Jan 23 18:43
I would like to have just one content model
Manu
@manuchap
Jan 23 19:51
then tags might help filtering out
Are you limited from an api call or something?