Go back to mobile site

 

Please note: The forums are currently intended for Kentico community. Although we monitor them time to time, we cannot guarantee a timely response. If you need a help with Kentico CMS, please feel free to send your message to support@kentico.com.

If you want to add new post or reply to post, please sign in.

Search: 

API Questions on Kentico API.
Subscribe to post
User avatar
kentico_radekm - (11/11/2011 1:48:52 AM)
RE:Howto Create BlogPost when BlogMonth doesn't exist?
Hello.

This approach seems to be OK, if ID returned by EnsureBlogPostHierarchy() method (ID of the new parent - blog month document) is correct ID you need. If you would like to insert given blogpost under some existing month, you can get ID of given cms.blogmonth parent from CONTENT_BlogMonth table.

As for the last par you wrote – so you extended cms.blogmonth document type by some additional custom field(s) and you fill them in CustomTreeNodeHandler.OnBeforeInsert() method, which is triggered after you run your custom code, right? So, when the blog post under the corresponding blog month is created, it contains proper value? Where exactly you want to use (get) these custom values, then, please? Can you clarify? Or did you already fix it? Thank you.

Best Regards,
Radek Macalik

Sitemap | Content Management System | E-commerce Software | Social Networking Software | Intranet | Online Marketing Solution | Copyright © 2004-2013 Kentico Software | Powered by Kentico CMS