Project list - parent vs. subproject

Tagged:  

ProjectPier 0.8.8

Hi!

The present projects list shows all projects - parents and subprojects - without any differentiation. Once a parent project is opened all subprojects are listed there. Is there a quick hack that either

a) hides all subprojects from the main projects list (they only show up under the parent when the parent is opened)

or

b) (better) lists all subprojects under their parent project in the main projects list.

Thanks for any help,

Henning

Hi Henning,

for the project order its just a question of naming convention, e.g. our main projects have group numbers (1xx to 9xx) and the subprojects YYMMDD. The My Project page then lists all main projects first and the myproject tab filters anyway only the main projects (see atached jpg´s) This was discussed earlier with the developers and I think its a good solution, as you can select the main projects always straight by using the drop down list...

AttachmentSize
project 1.jpg 146.62 KB
project 2.jpg 147.35 KB

Thanks - that's a workaround for the time being. And for those who are well acquainted with the collaboration platform. For others additional numbers will be confusing and generate questions. Therefore, I think that in general and in the long run there must be an option for sorting subprojects below their parents, or for hiding them. I found the code that generates the Dashboard-My Projects list (with all subprojects) and the code that generates the list in the drop-down menu (without subprojects). They are quite different, my php skills are less then rudimentary and I don't completely understand how the database information about projects/subprojects, active or passive, is pulled into the various variables which are then used for compiling the project lists. Isn't there an easy way to change projectpier/application/views/dashboard/my_projects.php to hide the subprojects? Is there a variable that only contains the parent projects and which could be use here intead of $active_projects (in a local hack, but later maybe with a switch "Show/hide subprojects").
Again, thanks for any help.
Henning

EDIT:
worked out how to hide subprojects from the dashboard "My Projects" view:
in projectpier/application/controllers/DashboardController.class.php insert after line 85:
tpl_assign('active_main_projects', logged_user()->getActiveMainProjects());
in projectpier/application/views/dashboard/my_projects.php change the four occurrences of $active_projects to $active_main_projects; do the same for my_projects_sidebar.php if desired