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)> ' , content_str, 0)> )", head_str)> )(.*?)()", head_str)> ]*>","","all")> ","","all")> ]*>",content_str,0,true)> ','')> ','')> ]*>","", "one")> "," [#linkstr#] ","one")> ]*>",content_str,0,true)>

Extraction done on URL

#FORM.import_URL#

","")> ","")> ]*)">',indx,0,"true")> Step 3
Make any required changes below


Page Title


Page Description MetaTag








Debugging Information




Click to see Original HTML from CFHTTP


Head Section


Title Tag



Meta Tags



Content Area -- Original

Click here to view .... note that stylesheets will not be loaded.

Content Area -- After Filtering

Click here to view .... note that stylesheets will not be loaded.

MySubsites = application.ADF.csData.getSubsiteStruct(); MyTemplates = application.ADF.csData.getSiteTemplates();

Error:
#error_message#

SubsiteFilenamePage Title
#subsite##import_filename##page_title#
UsernameDate
#username##import_date#
URL
#import_raw_url#
 



Step 1
Enter a URL to import HTML from


Step 2
Enter the filename to create


Choose the SubSite to create the file in.


Choose the Template to use.