I'm trying to change what fields are displayed in the History area in Contacts...
Any suggestions?
I'm trying to change what fields are displayed in the History area in Contacts...
Any suggestions?
I think you have to edit the modules/MODULE_NAME/subpanels/forHistory.php file directly.
Kenneth Brill - Help Forum Moderator
I do not respond to 'Private Messages'. Please email me directly instead
When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
Help us Help You
I tried adding a field the
modules\task\subpanels\forhistory.php
and it went bang - there must be another way.
Any pointers
Ta
Hi there,
Here is the answer.
Open the layout_defs for Contacts.
Look at the subpanel_setup=>history=>collection_list array .
From that list, your subpanel is being drawn.
The first one in the list is the one being displayed. If you modify lets's say the first one which is meetings=>array( .... subpanel_name=>'ForHystory');
Then your changes will be seen in Contact's history subpanel.
Now go to the modules/Meetings/subpanels/ForHistory.php and have fun with it
Hope this helps,
-ivo
Hi
Thanks for the help but I am still a bit confused:
I want to add the start time to the history tab in the Accounts, task history
I had worked out that I needed to change the file:
modules\Tasks\subpanels\ForHistory.php
I inserted the following line at line 59
'date_start'=>array(
'vname' => 'LBL_LIST_DATE_START',
'width' => '10%',
),
but it gave me an error.
Is there something else i need to change. What is the significance of looking at the layout_defs.php - it just tells me the name of the history file or am have I misunderstood.
for each one of the modules meetings,tasks,calls,notes,emails you will have to add to their ForHistory.php
date_start => array() values.
For the formentioned modules that there is no such field (date_start) in the DB you must provide an entry too.
For example the Calls module does not have date_start field, but you'll enter in the subpanels/ForHistory.php this
For the modules that have an entry you got it correct.PHP Code:'list_fields' =>array(
... ... ...
here are the old fields
... ...
'date_start'=>array(
'width' => '10%',
'vname' => 'LBL_LIST_DATE_MODIFIED',
'force_exists'=>true,
)
)
In short this field must be defined in the mentioned modules' ForHistory.php because they were defined in the collection_list for layout_defs for Accounts .Otherwise the UNION they are used in will break if different number of fields is provided .PHP Code:'date_start'=>array(
'vname' => 'LBL_LIST_DATE_START',
'width' => '10%',
),
Regards
Last edited by ivolator; 2007-06-26 at 03:30 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks