Split blogs into 2 parts. one is blog A , the other the all blogs except A

Liya Han asked on September 6, 2018 08:50

I want to use blog feature to show Company blog and departments blogs. I put two widgets (Latest blog post) on home page, first widget to show company blog. second to show all the departments blogs.

I checked the database but didn't find the connection between Conent_blog and content_blogpost. I thought that i could filter according to the blogId column, but it doesn't work. I don't know how to find the related query for the webpart or widget so that i can update the query.

could you please help in this situation? very appreciate!

Recent Answers


Dragoljub Ilic answered on September 6, 2018 11:11 (last edited on September 6, 2018 11:12)

Hi Liya,

You can separate those two blogs based on the path in the content tree (pages application). Widget 'Show latest blog post' is nothing else then simple repeater which getting all blog posts under specific path (blog) and order them by BlogPostDate field (usualy DESC). So if you want to show that in different way, you can clone, f.e. 'Department latest blog posts' widget and make it to be generic by checking Display field in the editing form for Path field on Properties tab. In that way, each time when you add new widget, you can select will it be for 'Department' or for 'Company' blog.

You can always clone it twice and just update path field for both to look at correct places.

Best regards, Dragoljub

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on September 6, 2018 14:13

In addition to a path separation, you can also use Categories. Assign categories to the page(s) you want in A and leave the others out.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.