checktitle = application.ADF.csData.pageExists(FORM.subsite, ctitle, cfile);
FORM variable
stdMetadata = structNew();
stdMetadata.title = trim(FORM.title_str);
stdMetadata.name = lcase(trim(FORM.new_filename));
stdMetadata.templateID = FORM.Template;
stdMetadata.description = trim(FORM.description);
stdMetadata.subsiteID = FORM.subsite;
application.ADF.utils.doDump(stdMetadata);
custMetadata = structNew();
custMetadata.layout = structNew();
custMetadata.layout.pageLayout = "Three Column";
custMetadata.layout.pageType = "Standard";
application.ADF.utils.doDump(custMetadata);
results = application.ADF.csPage.createPage(stdMetadata, custMetadata, 0);
application.ADF.utils.doDump(results);
content = structNew();
content.textblock = session.c_area;
content.pageID = results.newPageID;
content.subsiteID = FORM.subsite;
content.submitChange = 0;
contentUpdateResults = application.ADF.csContent.populateContent("mainText", content);
application.ADF.utils.doDump(contentUpdateResults);
MySubsites = application.ADF.csData.getSubsiteStruct();
MyTemplates = application.ADF.csData.getSiteTemplates();
INSERT into CMS_import_list (import_raw_URL, import_filename, subsite, template, page_title, description, import_date, username)
VALUES ( '#FORM.IMPORT_URL#',
'#lcase(trim(FORM.NEW_FILENAME))#',
'#subsite_str#',
'#template_str#',
'#trim(FORM.title_str)#',
'#trim(FORM.description)#',
'#DateFormat(now(),"MM/DD/YYYY")# #TimeFormat(now(),"HH:mm:ss")#',
'#CGI.auth_user#'
)
File Sucessfully imported into Commonspot
File NOT imported into Commonspot
select * from CMS_import_list
where import_raw_url like '%#trunc_str_4#'
checkfile = application.ADF.csData.pageExists(FORM.subsite, 'none', cfile);
Error:
#error_message#
Review Extraction and Confirm Below
' , original_text, 0)>
' , original_text, 0)>
' , head_str, 0)>
' , original_text, 0)>
Error with the HEAD tags for this page
' , original_text, 0)>
MySubsites = application.ADF.csData.getSubsiteStruct();
MyTemplates = application.ADF.csData.getSiteTemplates();
Error:
#error_message#
Subsite | Filename | Page Title |
#subsite# | #import_filename# | #page_title# |
Username | Date |
#username# | #import_date# |
URL |
#import_raw_url# |
|

Enter a URL to import HTML from

Enter the filename to create
Choose the SubSite to create the file in.
>#MySubsites[x]#
Choose the Template to use.