Hello once again:)
I am working on modifications needed for the Projects module.
I found a reltionshop that I need to remove.
Projects --> Project Tasks
We do not need this relationship, but after looking around, we did not find a way to be able to remove this relationship.
Can someone please point us in the right direction?
Thanks for any help.
Joseph
pgr
#2
That’s built in, you probably shouldn’t remove it, just try to hide the form or the subpanel where you don’t need it.
Hello,
I looked around for the subpanel for the project tasks, but no luck.
I find the page for choosing modules and subpanels:
Display Modules and Subpanels
But, project tasks are not listed as a sub-panel top be removed.
Still unclear as to hwo to find/remove the project task sub-panel and remove it fro the project page.
Thansk for ideas.
Joseph
pgr
#4
Create a copy of this file
modules/Project/metadata/subpaneldefs.php
Put it into the custom folder, creating any missing sub-directories if necessary:
custom/modules/Project/metadata/subpaneldefs.php
Now edit this new file and comment out (with /* and */) the array about project tasks:
/*
'projecttask' => array(
'order' => 20,
'sort_order' => 'asc',
'sort_by' => 'project_task_id',
'module' => 'ProjectTask',
'top_buttons' => array(
array('widget_class' => 'SubPanelTopCreateButton',),
),
'subpanel_name' => 'default',
'title_key' => 'LBL_PROJECT_TASKS_SUBPANEL_TITLE',
'get_subpanel_data' => 'projecttask',
),
*/
This will eliminate that subpanel from the Detail view of a Project.
General explanation on custom files: https://pgorod.github.io/Custom-folder/
Don’t forget to Quick Repair and Rebuild if nothing changes. If you completely break the screen, watch out for syntactic issues.