[Vtigercrm-developers] Customize event fields - Calendar module

Adam Heinz amh at metricwise.net
Fri Dec 16 07:36:47 PST 2011


Calendar is a bit of an odd module -- it is represented as two modules in
the database: Calendar (To Dos) and Events (Meetings and Calls).  I have
used vtlib in the past to add a field that shows up only for Meetings but
not To Dos.

$field = new Vtiger_Field();
// Configure field here
$module = Vtiger_Module::getInstance('Events');
$block = Vtiger_Block::getInstance('LBL_CUSTOM_INFORMATION', $module);
$block->addField($field);
$block->save($module);

We don't use Calls, so if you are trying to differentiate between Meetings
and Calls, this may not work for you.

On Thu, Dec 15, 2011 at 8:35 AM, Nathalia França
<nath.campreguer at gmail.com>wrote:

> Hello,
>
> I'm trying to customize the calendar module on Vtiger 5.2.1. I want to
> change the fields that show up when i register an event.
> I've tried to change some codes behind the module but i haven't been
> succesfull yet. I also wanted to know if it would be possible to show
> different fields on each event type because when i create a custom field it
> gets visible for all event types.
>
> I know i can add and disable some fields on settings menu but what i need
> is to change/disable the fields that "field access" doesn't allow me to.
>
>
> Thanks!
>
> Nathalia Campreguer França
> nath.campreguer at gmail.com
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20111216/782f0714/attachment-0002.html 


More information about the vtigercrm-developers mailing list