Project and Portfolio Management Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Adding New Header Column to Menu

Highlighted
mcwang
Super Collector

Adding New Header Column to Menu

Hi,

 

I am trying to add a customize the menu in 9.1.  Has anyone been able to add a new column to the menu, such as a Search, Create, Custom, My Links, etc. I have been editing the menu.xml and adding a new menu_id etc, but the parser is not recognizing the separate section.

 

I

Thanks,

Michael

11 REPLIES
Utkarsh_Mishra
Honored Contributor

Re: Adding New Header Column to Menu

After applying these changes you need to RESET the PPM instance by following these steps, then only your changes will be visible

 

  1. Shut-down the PPM server
  2. Remove TMP and WORK directoy from <ROOT>/server/<PPM_NAME>/
  3. Run kJSPCompiler.sh
  4. Start the server
Cheers..
Utkarsh Mishra

-- Remember to give Kudos to answers! (click the KUDOS star)
mcwang
Super Collector

Re: Adding New Header Column to Menu

Thanks Utkarsh,

 

I tried this, but the menu appears under the history column..  See attached for my xml.

 

Thanks,

Michael

Utkarsh_Mishra
Honored Contributor

Re: Adding New Header Column to Menu

Hi Mawang,

 

The attachment is missing... :)

Cheers..
Utkarsh Mishra

-- Remember to give Kudos to answers! (click the KUDOS star)
mcwang
Super Collector

Re: Adding New Header Column to Menu

Sorry, here it is.

Re: Adding New Header Column to Menu

I ended up modifying the file Header.jsp to add an additional menu.

 

Attached is a screenshot showing what my menu looks like.

 

Not sure if this is what you are trying to do, or if you are just trying to add additional selections to the existing menu.

 

 

Utkarsh_Mishra
Honored Contributor

Re: Adding New Header Column to Menu

Hi Mcwang,

 

Try to create your menu in seperate MENU section.. (its not necessary to map the key... you can directly add it)

 

for ex. 

 

<menu id="ResourceFinderMenuItem" key="MY Menu Items" bundle="Mymenu"><url>javascript&colon;openWindoid('www.exz.com', null, null,'toolbar=yes,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no')</url>

<security>

<and>

<or>

<license reference-code="7" />

<license reference-code="6" />

</or>

</and>

</security>
</menu>

Cheers..
Utkarsh Mishra

-- Remember to give Kudos to answers! (click the KUDOS star)
mcwang
Super Collector

Re: Adding New Header Column to Menu

Yes, that is exactly what I am trying to do?  So I need to edit the header.jsp file then?  Any other files I need to edit?

 

Thanks,

 

Re: Adding New Header Column to Menu

If you only want to add an additional menu, and no sub-menus, only Header.jsp would need to be modified.   No changes were made to menu.xml. 

 

Following is similar to what was added to our Header.jsp:

 

<li class="yuimenubaritem">
           <a class="yuimenubaritemlabel" href="mailto:user@bausch.com?subject=Request&body=Add text here.">Email</a>
          </li>

 

Never tried adding submenus.

Deep Mehta
Regular Collector

Re: Adding New Header Column to Menu

Hi-

I was able to add new header (breadcrumb) and its submenus in 9.12. Below is the procedure I followed.
*Always backup your original files*
PART A - Adding a new header
1. Stop the server
2. Add a line menu.custom=Custom to resource bundle file CoreResources.properties located at <PPM_Home>\server\<server name>\deploy\itg.war\WEB-INF\resources\web folder
3. Add code to header.jsp file located at <PPM_Home>\server\<server name>\deploy\itg.war\web\knta\global folder as
<li class="yuimenubaritem">
<a class="yuimenubaritemlabel" href="#"><fmt:message key="menu.custom" bundle="${coreResources}"/></a>
</li>
4. Delete your temp and work folders
5. Run kJSPCompiler.sh
6. Start the server
7. Your new label will appear as 'Custom'

PART B - Adding Sub menus
1. Stop the server
2. Create a custom resource bundle eg mycustom.properties in <PPM_Home>\server\<server name>\deploy\itg.war\WEB-INF\resources\web folder
2. Add a line for each resource in mycustom.properties you want you use (Dont use the quotes "" as the Custom SI guides says .. eg.use
Test=Test
3. Update menu.xml
4. Start the server

Best,
Deep

AShameem
Super Collector

Re: Adding New Header Column to Menu

Thank you for the detailed steps Deep !

 

Can you please also show what was added to menu.xml ? I  am getting my custom label in Menu, but getting a parser error whenever I am trying to add sub menus to it.

 

Regards

d4y4n4
Frequent Visitor

Re: Adding New Header Column to Menu

Hi,

Detailed information is provided in the release note http://support.openview.hp.com/selfsolve/document/KM1355991
search for menu.xml file

Regards,
Dayana
//Add this to "OnDomLoad" event