Hi. I added a couple custom fields to Products that are checkbox fields. I then added these fields to the default Products subpanel so that they show in the Products subpanel under Contacts. Problem is, the db value shows (1 or nothing) rather than the disabled checkbox like when I add these fields to the Products ListView.
I dug and dug down in the code that displays the subpanel until I got to the following lines that actually set the values drawn in subpanels (from includes/ListView/ListView.php):
$widget_contents = $layout_manager->widgetDisplay($list_field);
$this->xTemplate->assign('CELL', $widget_contents);
Well, I know I could modify this file with an if/then that checks $widget_contents and then wrap it in checkbox html before setting it to CELL if needed, but it seems like widgetDisplay() is somehow supposed to know what type of field it is and do this for me. If anyone knows if that's the case, could someone please tell me what I need to do to get my custom checkbox fields to show in a subpanel as an actual checkbox? Thanks.


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks