adding new UI Type in Vtiger 7.0

2019-06-04 05:52发布

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.

标签: php vtigercrm
1条回答
小情绪 Triste *
2楼-- · 2019-06-04 06:44

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

查看更多
登录 后发表回答