Project

General

Profile

Hide the 'Project description' button (alias 'Home') but maintaining the project description text in the welcome page » History » Version 2

« Previous - Version 2/3 (diff) - Next » - Current version
Anonymous, 26/05/2015 18:26


Hide the 'Project description' button (alias 'Home') but maintaining the project description text in the welcome page

NOTE : This change refers to Sitools2 - v2.4

In order to show the description of the project in the welcome page, it is necessary to have the projectDescription module enabled for the project itself. The associated button will then appear in the top bar, but its function will not be that different from the default home button that Sitools2 creates for the project.

In order to hide only the 'Project description' button, it is necessary to edit the file:

source:git_sitools_idoc|szcluster-db/workspace/client-user/js/components/entete/navBar.js@c79bb7e3#L97

forcing Sitools2 to show only those buttons associated with the modules that are NOT projectDescription:

if(module.name!="projectDescription"){
    items.push(item);
    items.push('|');
}