AnsweredAssumed Answered

How to override/customize a view inside a subpanel

Question asked by Michele Mazzilli on Feb 25, 2016

Hi everyone,

 

I need to customize a subpanel, overriding the templates that render it.

 

The whole subpanel is "\clients\base\layouts\filterpanel\filterpanel.hbs" and, if i create and modify this file "\custom\modules\myModule\clients\base\layouts\filterpanel\filterpanel.hbs" Sugar correctly uses this template.

The table (with the visible fields of the related module) is rendered by "\clients\base\views\flex-list\flex-list.hbs"; i tried to create the file "\custom\modules\myModule\clients\base\views\flex-list\flex-list.hbs" and even "\custom\modules\relatedModule\clients\base\views\flex-list\flex-list.hbs", but Sugar ignores both custom files.

An additional information: the $viewdefs variabile ($viewdefs['myModule']['base']['layout']['subpanels']['components']...) is in this file: "\custom\modules\myModule\Ext\clients\base\layouts\subpanels\subpanels.ext.php", while the "\custom\modules\relatedModule\clients\base\views\subpanel-for-...\subpanel-for-....php" starts with "$viewdefs['relatedModule']['base']['view']['subpanel-for-...']...".

 

Sugar Version: 7.5.2 Pro.

 

Any idea about this?

 

Greeting

 

Michele

Outcomes