cancel
Showing results for 
Search instead for 
Did you mean: 

[solved] problem with customized titlebar.jsp

ethan
Champ in-the-making
Champ in-the-making
Hi : )

I made some changes to the file /alfresco/jsp/parts/titlebar.jsp to remove the list of links (company home / my alfresco / guest home …) because I don't need it. I replaced the original file with my custom titlebar.jsp and restarded Alfresco. The modification does work on almost every pages but when I click on the Details button to show the document's details page, this part of the titlebar reappear !

How can it be possible  :?:
Thanks for your help : )
8 REPLIES 8

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
hi, if you want to change some of hard coded jsp's you must change it where it is so, if you want to change /jsp/parts/titlebar.jsp you change the file, also you must keep war file in consistent state ( change file in it too if you are running in tomcat).

Dialog container should always work if you are doing this right. because of jsp/dialog/container.jsp has line
<td colspan="2"><%@ include file="../parts/titlebar.jsp"%>
where it uses jsp include to include file. also may be that tomcat is using temp data, so delete this first, and delete alfresco dir in tomcat webapp , so new one will be created.

PS: you should see what I have done with title bar Smiley Happy , anyway this works and you should get it in no time.

ethan
Champ in-the-making
Champ in-the-making
Hi Smiley Happy

I modified my ant script to include my custom titlebar.jsp in the alfresco war. I deleted the alfresco folder and replaced the original war by the one I modified and then I deleted the alfresco folder in the tomcat temp folder. I also deleted the cache of my browser (Firefox) and started alfresco.

The war is deployed and I checked the titlebar.jsp inside the /jsp/parts/ folder to see if it was the right file (with the modification) and it was ! But the problem is still here 😕 The supposedly part (with the links) still appear when I'm on the Details page : (

ps: I agree to see what you have done with titlebar but you don't provide any link ? : o

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
why do not you send title bar .jsp code to see. 
and image where you tell me what is wrong, and I will provide you with the code or pointer to how to do this..

ethan
Champ in-the-making
Champ in-the-making
Here is the link to download the titlebar.jsp file.  (I uploaded it on a Windows Live skydrive account because I don't have any ftp access at hand.)

this is the UI which should be displayed each time :

[img]http://img251.imageshack.us/img251/3783/alfrescowebclient1.th.png[/img]

And this is the way it is displayed on the Details page :

[img]http://img153.imageshack.us/img153/6315/alfrescowebclient2.th.png[/img]

Thank you for your help : )

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
that is because you made a mistake, this is html organization problem.
use ff and fire bug, you will fix this in 5 min tops, it is easier for you to do this this way than for me to solve html problem. Smiley Very Happy

ethan
Champ in-the-making
Champ in-the-making
What do you mean by html organization problem? I used firebug to look a the html code. I see that the html code for the link menu is still there but it shouldn't be because the container.jsp load the correct ../parts/titlebar.jsp file. Obviously I'm missing something but I don't know what 😕

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
<td style="width:100%;">
         <table cellspacing="0" cellpadding="0" width="100%">
            <tr>
               <td style="padding-right:4px;"><a:actionLink id="about_alfresco" image="/images/logo/AlfrescoLogo32.png" value="#{msg.title_about}" tooltip="#{msg.title_about}" showLink="false" action="dialog:aboutDialog" /></td>
            </tr>
         </table>
      </td>

edit this part.
PS: you do not have to restart server when y ou change jsp, just refresh (crtl + R) . you will get this faster.

ethan
Champ in-the-making
Champ in-the-making
ok you were right. I deleted this part and it removed the link menu but I don't understand why  :?: I mean this part of the code was just supposed to display the alfresco logo on the left side of the titlebar. Where did the menu link code come from ? : o

Well, thank you for your time and help Smiley Happy