Portal Engine
Version 3.x > Portal Engine > Post archive webpart for other document types View modes: 
User avatar
Member
Member
Gabriëlle - 12/3/2008 1:46:12 PM
   
Post archive webpart for other document types
Hello,

I have a question about the Post archive webpart for blogs. I would like to use this feature for my news page and for my blogs. Is it possible to make this webpart compatible for all kinds of document types?

I already made some changes to the code so that I can choose a specific document type, but that didn't help because of some extra code like the bloghelper function, which isn't available to other document types.

I'm not an expert in programming (but learned A LOT since I'm using Kentico), can anybody advise me to make such a custom webpart?

Thanks a lot,

Gabriëlle
The Netherlands

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 12/4/2008 5:24:23 AM
   
RE:Post archive webpart for other document types
Hi,

For this you can use repeater web part with appropriate transformation. You can count the child nodes under some node by using "NodeChildNodesCount" column from DB and the date from "DocumentCreatedWhen" column.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
Gabriëlle - 12/4/2008 1:32:53 PM
   
RE:Post archive webpart for other document types
Hi Juraj,

Thanks a lot, it works! Guess I was completely blinded by the blog function and didn't thought about the idea that there is another way to count the posts.

Regards,

Gabriëlle