Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/string/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何查找在Kentico实例中使用表单的每个页面?_Kentico - Fatal编程技术网

如何查找在Kentico实例中使用表单的每个页面?

如何查找在Kentico实例中使用表单的每个页面?,kentico,Kentico,我有一个Kentico网站,其中有几十个由表单模块(以前是BizForms)生成和管理的旧表单。他们中的许多人都有各种各样的问题,如果我尝试升级,这些问题将破坏我的实例。我需要能够找到实例上使用的所有表单,这样我就可以看到它是否仍在使用,以及在哪里放置它的固定替换 我目前使用的是Kentico 8.2,正在尝试升级到Kentico 11,这是发生故障的地方。您首先需要了解可以从Kentico UI中添加表单的位置。其次,您需要考虑的是,对于任何自定义代码中有硬编码的表单名称的实例,这些都不起作用

我有一个Kentico网站,其中有几十个由表单模块(以前是BizForms)生成和管理的旧表单。他们中的许多人都有各种各样的问题,如果我尝试升级,这些问题将破坏我的实例。我需要能够找到实例上使用的所有表单,这样我就可以看到它是否仍在使用,以及在哪里放置它的固定替换


我目前使用的是Kentico 8.2,正在尝试升级到Kentico 11,这是发生故障的地方。

您首先需要了解可以从Kentico UI中添加表单的位置。其次,您需要考虑的是,对于任何自定义代码中有硬编码的表单名称的实例,这些都不起作用。这将仅引用Kentico UI更新

表单可以驻留在UI中的什么位置

  • 在使用Web部件的页面模板中
  • 使用小部件的内部页面内容
如果在模板中执行搜索,则需要创建SQL查询以运行类似以下内容的代码:

select *
from CMS_PageTemplate
where (PageTemplateWebParts like '%formcodename%' -- replace "formcodename" with your form code name
and PageTemplateWebParts like '% type="BizForm" %')
select DocumentContent, *
from CMS_Document
where DocumentContent like '%(name)BizForm|(BizFormName)formcodename|%' -- replace "formcodename" with your form code name
如果在页面内容中执行搜索,则需要创建SQL查询以运行类似以下内容的代码:

select *
from CMS_PageTemplate
where (PageTemplateWebParts like '%formcodename%' -- replace "formcodename" with your form code name
and PageTemplateWebParts like '% type="BizForm" %')
select DocumentContent, *
from CMS_Document
where DocumentContent like '%(name)BizForm|(BizFormName)formcodename|%' -- replace "formcodename" with your form code name

如果这些查询能让你接近你想要的东西,记住,没有现成的东西

您首先需要了解可以从Kentico UI中添加表单的位置。其次,您需要考虑的是,对于任何自定义代码中有硬编码的表单名称的实例,这些都不起作用。这将仅引用Kentico UI更新

表单可以驻留在UI中的什么位置

  • 在使用Web部件的页面模板中
  • 使用小部件的内部页面内容
如果在模板中执行搜索,则需要创建SQL查询以运行类似以下内容的代码:

select *
from CMS_PageTemplate
where (PageTemplateWebParts like '%formcodename%' -- replace "formcodename" with your form code name
and PageTemplateWebParts like '% type="BizForm" %')
select DocumentContent, *
from CMS_Document
where DocumentContent like '%(name)BizForm|(BizFormName)formcodename|%' -- replace "formcodename" with your form code name
如果在页面内容中执行搜索,则需要创建SQL查询以运行类似以下内容的代码:

select *
from CMS_PageTemplate
where (PageTemplateWebParts like '%formcodename%' -- replace "formcodename" with your form code name
and PageTemplateWebParts like '% type="BizForm" %')
select DocumentContent, *
from CMS_Document
where DocumentContent like '%(name)BizForm|(BizFormName)formcodename|%' -- replace "formcodename" with your form code name
如果这些查询能让你接近你想要的东西,记住,没有现成的东西