在Vtiger 7.0中添加新的UI类型 [英] adding new UI Type in Vtiger 7.0

查看:136
本文介绍了在Vtiger 7.0中添加新的UI类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在vtiger 7.0.0中创建新的UI类型.但面临以下错误. 无法在'modules/Vtiger/partials/ EditViewContents.tpl '中加载模板文件'modules/Vtiger/uitypes/ Questionnaire.tpl ""

I have tried to create a new UI Type in vtiger 7.0.0. but facing the below error. "Unable to load template file 'modules/Vtiger/uitypes/Questionnaire.tpl' in 'modules/Vtiger/partials/EditViewContents.tpl'"

创建新的UI类型所遵循的步骤如下.

Steps which I have followed to create a new UI Type are as below.

第一步:更新" modules \ Vtiger \ models \ Field.php "并添加新的UIType为222

Step1: update "modules\Vtiger\models\Field.php" and add new UIType as 222

第2步:创建了一个新文件" modules \ Vtiger \ uitypes \ Questionnaire.php "

Step2: created a new file "modules\Vtiger\uitypes\Questionnaire.php"

Step3:在同一目录中创建新的.tpl文件" layouts \ vlayout \ modules \ Vtiger \ uitypes \ Questionnaire.tpl "和" QuestionnaireFieldSearchView.tpl ".

Step3: created new .tpl files "layouts\vlayout\modules\Vtiger\uitypes\Questionnaire.tpl" and "QuestionnaireFieldSearchView.tpl" in the same dir.

面对上述问题的所有这些步骤之后.

after all these steps facing the above issue.

任何帮助/指导将不胜感激.

any help/guidance will appreciated.

推荐答案

我已解决此问题,步骤如下.

I have resolved this, steps are as below.

第一步:更新"modules \ Vtiger \ models \ Field.php"并添加新的UIType为222

Step1: update "modules\Vtiger\models\Field.php" and add new UIType as 222

Step2:创建了一个新文件"modules \ Vtiger \ uitypes \ Questionnaire.php"

Step2: created a new file "modules\Vtiger\uitypes\Questionnaire.php"

Step3:在同一目录中创建了新的.tpl文件"layouts \ vlayout \ modules \ Vtiger \ uitypes \ Questionnaire.tpl"和"QuestionnaireFieldSearchView.tpl".

Step3: created new .tpl files "layouts\vlayout\modules\Vtiger\uitypes\Questionnaire.tpl" and "QuestionnaireFieldSearchView.tpl" in the same dir.

Step4:在同一目录中创建了新的.tpl文件"layouts \ v7 \ modules \ Vtiger \ uitypes \ Questionnaire.tpl"和"QuestionnaireFieldSearchView.tpl".

Step4: created new .tpl files "layouts\v7\modules\Vtiger\uitypes\Questionnaire.tpl" and "QuestionnaireFieldSearchView.tpl" in the same dir.

第5步:在表 vtiger_ws_fieldtype

这就是我创建新的UIType所需的全部

Thats all i need to create new UIType

这篇关于在Vtiger 7.0中添加新的UI类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆