COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => COGNOS Connection => Topic started by: cspecken on 21 Apr 2010 04:55:18 PM

Title: How do I add hyperlink to help drop down
Post by: cspecken on 21 Apr 2010 04:55:18 PM
I am trying to add additonal help content for our users.  The goal is to add additonal links to the help drop down.  I have looked all over for info on how to achieve this with no luck.  Any ideas or information will be greatly appreciated.


Thanks in advance
Title: Re: How do I add hyperlink to help drop down
Post by: tupac_rd on 17 May 2010 12:13:45 PM
not sure if you can add to help dropdown, but I think you can add something next to Help link, which you might already know.... Post it under Cognos Administration, and if Paul M reads it he might be able to help you..... he is really good at this stuff

hth
2pac
Title: Re: How do I add hyperlink to help drop down
Post by: CognosPaul on 17 May 2010 02:11:40 PM
Thanks for bumping this, I didn't see it before. I'm going to be working at a site that only has 8.2 for the foreseeable future, but whenever I have access to a machine with 8.4 I'll poke around. One of these days I'll just email myself a copy of the presentation.xsl file so I can poke at it from the comfort of home.
Title: Re: How do I add hyperlink to help drop down
Post by: CognosPaul on 31 May 2010 09:43:21 AM
To begin with, there is an IBM article on adding and hiding UI elements found here (http://publib.boulder.ibm.com/infocenter/c8bi/v8r4m0/index.jsp?topic=/com.ibm.swg.im.cognos.ug_cra.8.4.0.doc/ug_cra_id28609CustomizetheUserInterfaceBasedonGroupandR.html).

However, it's much more fun tweaking the undocumented internals. So let's forget the boring system.xml file and start with the presentation.xsl file found under ..\c8\templates\ps\logicsheets\presentation\main\presentation.xsl.

Open that file and look for the string "<!-- help -->". This group is what controls the contents of the flyout menu list. Look for bannerHelp('companyWebsite'); and copy the entire section from <out:if to </out:if>, paste it directly after.

Now, in the new section change the bannerHelp('companyWebsite'); to bannerHelp('myURL');

Save and close the file.

Next you'll need to open ..\c8\webcontent\ps\portal\js\banner.js

Do a search for bannerHelp; it should be in row 222. Add this section:

case 'myURL':
openURL("http://www.cognoise.com/community/");
break;


You can replace that URL with one of your choosing, if you absolutely must.

Save and close the file. Restart Cognos, cross your fingers and log in.

If Cognos doesn't load, restore the backups you made. You did make backups of both files before you modified them, right?
Title: Re: How do I add hyperlink to help drop down
Post by: tupac_rd on 01 Jun 2010 10:20:40 AM
awesome, PaulM you rock!!!