Displaying 1 result from an estimated 1 matches for "another_comment".
2006 Aug 16
1
Creating a comments system for multiple types of content
...end
Then the data rows could look like these:
# This item is associated with news_item ID = 1
some_comment:
subject: "this is a comment"
body: "and this is its content"
model_type_id: 1
model_type: "news_item"
# This item is associated with news_item ID = 2
another_comment:
subject: "this is another comment"
body: "and this is another content"
model_type_id: 2
model_type: "news_item"
# This item is associated with party ID = 5
yet_another_comment:
subject: "this is yet another comment"
body: "and this is yet a...