[solved] problem with customized titlebar.jsp
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2010 11:16 AM
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 : )
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 : )
Labels:
- Labels:
-
Archive
8 REPLIES 8

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2010 04:32 AM
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
PS: you should see what I have done with title bar
, anyway this works and you should get it in no time.
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2010 09:32 AM
Hi 
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

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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2010 09:36 AM
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..
and image where you tell me what is wrong, and I will provide you with the code or pointer to how to do this..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2010 10:20 AM
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 : )
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 : )

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2010 01:22 PM
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.
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.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2010 04:49 AM
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 😕

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2010 05:05 AM
<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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2010 05:20 AM
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
Well, thank you for your time and help

