cancel
Showing results for 
Search instead for 
Did you mean: 

Add external link in titlebar list

ribz33
Champ on-the-rise
Champ on-the-rise
Hi,

Is there a simple way to add an external link to other web site like "<a:listItem>" in the <a:modeList> of the titlebar ?

Or do i need to modify bean ?

Thx in advance
Cya
4 REPLIES 4

kevinr
Star Contributor
Star Contributor
At the moment you will need to modify the NavigationBean. But another way would be to simply add the link into the JSP:

               <td width=100% style="background-image: url(<%=request.getContextPath()%>/images/parts/titlebar_bg.gif)">
                  <%– Toolbar –%>
                  <a:modeList itemSpacing="3" iconColumnWidth="0" horizontal="true"
                        itemStyleClass="topToolbar" itemLinkStyleClass="topToolbarLink" selectedStyleClass="topToolbar" selectedLinkStyleClass="topToolbarLink"
                        value="#{NavigationBean.toolbarLocation}" actionListener="#{NavigationBean.toolbarLocationChanged}">
                     <a:listItem value="companyhome" label="#{msg.company_home}" rendered="#{NavigationBean.companyHomeVisible}" />
                     <a:listItem value="userhome" label="#{msg.my_home}" />
                     <a:listItem value="guesthome" label="#{msg.guest_home}" rendered="#{NavigationBean.isGuest == false && NavigationBean.guestHomeVisible}" />
                     <a:listItem value="myalfresco" label="#{msg.my_alfresco}" />
                  </a:modeList>
<!– ADD YOUR LINK HERE! –>
               </td>
You could give the link the same CSS styles as we use for the toolbar items - no one would know it's not part of the component! Smiley Wink

Thanks,

Kevin

ribz33
Champ on-the-rise
Champ on-the-rise
Cool Smiley Happy
i do it now.

thx a lot!

ribz33
Champ on-the-rise
Champ on-the-rise
ok its nice like that, but i needed to had a tab inside.

To help others, i did this is code :


<td width="100%" style="background-image: url(<%=request.getContextPath()%>/images/parts/titlebar_bg.gif)">
<table>
<tr>
<td>
<%– Toolbar –%>
<a:modeList itemSpacing="3" iconColumnWidth="0" horizontal="true"
itemStyleClass="topToolbar" itemLinkStyleClass="topToolbarLink" selectedStyleClass="topToolbar" selectedLinkStyleClass="topToolbarLink"
value="#{NavigationBean.toolbarLocation}" actionListener="#{NavigationBean.toolbarLocationChanged}">
<a:listItem value="companyhome" label="#{msg.company_home}" rendered="#{NavigationBean.companyHomeVisible}" />
<a:listItem value="userhome" label="#{msg.my_home}" />
<a:listItem value="guesthome" label="#{msg.guest_home}" rendered="#{NavigationBean.isGuest == false && NavigationBean.guestHomeVisible}" />
<a:listItem value="myalfresco" label="#{msg.my_alfresco}" />
</a:modeList>
</td>
<td>
<a href="PUT HERE LINK" target="new" class="topToolbarLink"><h:outputText value="YOUR MESSAGE" style="topToolbarLink" /></a>
</td>
</tr>
</table>
</td>
<td><img src="<%=request.getContextPath()%>/images/parts/titlebar_end.gif" width=8 height=30></td>
</tr>
</table>

trandz
Champ in-the-making
Champ in-the-making
Hi,

i got nearly the same problem.
I've added the link to the titlebar.jsp as listItem. Now i want to load a JSP-file, by clicking on that button.

Anybody an idea how to connect it to the JSP-file i prepared in background.

Regards,
Andy