Counting Blog Post 'Likes' #12249
Unanswered
mrpavlitzky
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Enable the Define a ContentType like this , (not C# only,you can create with UI also): public class MyCollectionPart : ContentPart
{
public ContentPickerField PostId {get; set;}
public UserPickerField UserId {get; set;}
} Then you can add a content to |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm preparing to implement 'Thumbs Up' functionality for blog posts and I have a following dillema. Since I don't have much experience with document based databases (which as far as I know is how Orchard stores Content Items) I wonder what's the most optimal way to store the number of likes of every post. Suppose I'd like to add a module which shows the number of likes under each post. Would it then be reasonable to add a numeric field to the Blog Post content definition or maybe create a separate sql table with post_id and likes_count columns.
Beta Was this translation helpful? Give feedback.
All reactions