I need to add the Tags field on a custom module that does not have it as an option in the Record View. in Studio.
We have not used Tags before, so I'm unsure how to add that field to this module.
So what's the correct way?
thanks,
Francesca
I need to add the Tags field on a custom module that does not have it as an option in the Record View. in Studio.
We have not used Tags before, so I'm unsure how to add that field to this module.
So what's the correct way?
thanks,
Francesca
You need to add taggable into the vardefs.php
VardefManager::createVardef('MODULE_NAME', 'MODULE_NAME', array('basic', 'assignable', 'taggable'));
Thank you Jeff Bickart
The vardefs
modules/<module_name>/vardefs.php
already had that.
And the cached vardefs
cache/modules/<module_name>/<module_name>vardefs.php
showed the templates include taggable.
'templates' =>
array (
'basic' => 'basic',
'following' => 'following',
'favorite' => 'favorite',
'taggable' => 'taggable',
'commentlog' => 'commentlog',
'integrate_fields' => 'integrate_fields',
'team_security' => 'team_security',
'assignable' => 'assignable',
),
Yet I still didn't have the Tag field in Studio, even after QRR.
I added the field to my record view in code and now it's there and it works.
The mysteries of code...
Thank you Jeff Bickart
The vardefs
modules/<module_name>/vardefs.php
already had that.
And the cached vardefs
cache/modules/<module_name>/<module_name>vardefs.php
showed the templates include taggable.
'templates' =>
array (
'basic' => 'basic',
'following' => 'following',
'favorite' => 'favorite',
'taggable' => 'taggable',
'commentlog' => 'commentlog',
'integrate_fields' => 'integrate_fields',
'team_security' => 'team_security',
'assignable' => 'assignable',
),
Yet I still didn't have the Tag field in Studio, even after QRR.
I added the field to my record view in code and now it's there and it works.
The mysteries of code...