Ok its not a good idea to open a post with question, but I cannot help this time. How many times have you felt that Top-Level navigation in SAP Netweaver portal is too cumbersome and takes ages to navigate? I understand those of you who have more than 2GB of RAM, but in general, how many times you felt that “I need to get this done quickly and portal is too slow”. For e.g. say you have to go create a system in portal for connecting to R/3. You have to navigate through System Administration –> System Configuration and then PCD Contents. Now, it would be great to have a simple drop-down on TLN that makes life much easy. Yes, this post is about how to create a cool hover drop-down on Portal TLN.
Though I have already written an article on it on SDN, but I felt it would be good if put the code directly in different files and you can simply import these files in your NWDS.
More about the code:
There are not much to write about this file. Just a few configurations to make. We will add application-config property named SecurityArea and set value to NetWeaver.Portal. This is basically to determine what level of security this application will have and who all can actually get access to code. We will also add one more property in application-config that controls that sharing of code among different applications. For that we will add SharingReference property. Then in Component-profile we will add two properties named as NavigationTagLibrary and FrameworkTagLibrary for referring to navigation tags that helps us converting TLN <Div> to drop-down.
CSS and styling:
You can write this code in .css file as well but here I have written css and styling in a JSP file and simply included this file with <include> statements in our main Header.jsp file. This does not makes any difference in tag rendering. It’s just another way of writing a .css file. This code is to be written in a Header_style.jsp
Download all files here:
Above links are no longer working, Donwload the ZIP file for this project from following link.