adding new UI Type in Vtiger 7.0

落花浮王杯 提交于 2020-02-02 13:41:30

问题


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'"

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

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

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

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.


回答1:


I have resolved this, steps are as below.

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

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

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

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

Step5: Register/insert new UIType in table vtiger_ws_fieldtype

Thats all i need to create new UIType



来源:https://stackoverflow.com/questions/50362965/adding-new-ui-type-in-vtiger-7-0

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!