Hi,
how to create a new document based on some template is described in this
thread.
To add a text into editable region you may need to get
PageInfo of the new document using following method:
CMS.PortalEngine.PageInfoProvider.GetPageInfo(String, String, String, String, Int32, Boolean, GeneralConnection)
public static PageInfo GetPageInfo(
string siteName,
string aliasPath,
string cultureCode,
string urlPath,
int nodeId,
bool combineWithDefaultCulture,
GeneralConnection conn
)
PageInfo object has
EditableWebParts property which is Hashtable, so you can save the content into editable region using following example code:
PageInfo.EditableWebParts[idofwebpart] = content;Best regards,
Ivana Tomanickova