Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > deleting a blog using the API View modes: 
User avatar
Member
Member
aviad78-012.net - 7/30/2009 1:39:18 PM
   
deleting a blog using the API
Hello,

I'll start by saying I'm quite new to kentico and need to crash course in it for a project I'm working on, and so far its not going bad at all.

one of the web parts I'm building need to show all the blogs of a user, and allow him to add/remove a blog,
the showing part was straightforward (CMS.Blogs.BlogHelper.GetBlogs) ,

but i'm having problems figuring out how to add and remove blogs through code,
can anyone help ? (preferably post some code sample)

Thanks
Aviad.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 7/31/2009 4:59:15 AM
   
RE:deleting a blog using the API
Hello,

deleting of blog is the same action as deleting document of Blog document type. You may find the appropriate node in the content tree and delete it (its children – blo posts, blog months - will be deleted automatically, too).

The API sample code is here: http://devnet.kentico.com/docs/devguide/delete_document.htm

The API Reference is here: http://devnet.kentico.com/downloads/kenticocms_api.zip

Best regards,
Helena Grulichova