architecture

Ideas to Improve Relate Fields in SugarCRM

Introduction

For my ongoing documentation work I've investigated the workings of the Relate field type, both the Vardefs and the SugarField. To see the Wiki pages on this see:

1. Vardefs: http://www.sugarcrm.com/wiki/index.php?title=Relate_(Vardefs_field)
2. SugarField: http://www.sugarcrm.com/wiki/index.php?title=Relate

The Relate field type can be a very powerful way to display fields from other beans, but at this moment it's limited by Sugar. Relate fields are used by one-to-one or one-to-many (on the 'many' side) relationships, and thus hold the contents of one related bean. That way it's possible to display the Account Name in Contacts, for instance.

Sugar needs to add Simpleness to the MVC framework

Just spraying out some thoughts just after fixing a custom view with a custom action name is a default module..

The action that I have is FullTextSearch. This is camelcase, because it's Sugar's convention. Fine. But now, I want to create a custom view, which needs to be called ./custom/modules/views/view.fulltextsearch.php>, because of:

<?php
class ViewFactory{
    function
loadView($type = 'default', $module, $bean = null, $view_object_map = array()){
        ---->
$type = strtolower($type);
?>

Syndicate content