Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Remove Colorizer to get Layout editor working
#8
(11-06-2015, 12:12 PM)joebordes Wrote: Basically right panel detail view actions and inline blocks (like comments) are saved in vtiger_links:
http://corebos.org/documentation/doku.php?id=en:devel:corebos_hooks#linkstypes_and_usage

If a right panel action is a box with functionality, which may also be inline with the other blocks, it is called a "detail view widget"

Now you can order detail view widgets that appear as you would with any other block in the detail view, so you could put comments first (for example).

http://corebos.org/documentation/doku.php?id=en:devel:add_special_block

So let me see if I understand this step by step:


Code:
include_once('vtlib/Vtiger/Module.php');

Includes the Module.php file (but only if it hasn't been included already), where a bunch of generic classes and methods live.

Code:
$moduleInstance = Vtiger_Module::getInstance('ModuleName');
Creates an instance using a static method from the class in Module.php, using the module name we want to create a link to.

Code:
$moduleInstance->addLink(<LinkType>, <LinkLabel>, <LinkURL>, <IconPath>);
That instance inherits the method "addLink" from Module.php, and we can use some arguments to specify what we want the link to do.

Is that the correct way to interpret this?

And we would place this code in the php file that creates a detailview for a specific module?

Just trying to learn the basics of how the system architecture is set up.

Where can I get some information about the global $adb instance? I see there are some methods used from this class to order query results but I don't fully understand them.
Reply


Messages In This Thread
RE: [SOLVED] Remove Colorizer to get Layout editor working - Guido1982 - 11-07-2015, 10:33 AM

Forum Jump:


Users browsing this thread: 6 Guest(s)