AnsweredAssumed Answered

Navigation Rules for Login Page

Question asked by marctsg on Jan 29, 2008
Latest reply on Jan 30, 2008 by marctsg
I am trying to replace the default Alfresco login page with a customized one.  I have added a web-client-config-custom.xml to my extension folder and managed to override the page that is first displayed.

However, the login/logout buttons on the titlebar still point to the original Alfresco login page.  I have tried to override the navigation rules by modifying the faces-config-custom.xml located in WEB-INF with the rest of the faces configs.  These are its contents:

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
                              "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config>

   <!– *************************************************************** –>
   <!– Empty JSF config file to prevent errors being thrown during JSF –>
   <!– initialisation. Overwrite this file with your custom version.   –>
   <!– *************************************************************** –>
      <!– override rule to get back to the login page from anywhere –>
   <navigation-rule>
      <from-view-id>/jsp/*</from-view-id>
      <navigation-case>
         <from-outcome>logout</from-outcome>
         <to-view-id>/jsp/connectsite/login.jsp</to-view-id>
      </navigation-case>
      <navigation-case>
         <from-outcome>relogin</from-outcome>
         <to-view-id>/jsp/relogin.jsp</to-view-id>
      </navigation-case>
   </navigation-rule>

      <navigation-rule>
      <from-view-id>/jsp/connectsite/login.jsp</from-view-id>
      <navigation-case>
         <from-outcome>success</from-outcome>
         <to-view-id>/jsp/browse/browse.jsp</to-view-id>
      </navigation-case>
   </navigation-rule>
  
</faces-config>

I have researched the forums and the WIKI and can't seem to get a definitive answer on whether this is the right way or not.  Some sources claim that it is necessary to override this in web-client-config-custom.xml, but I can't find any source defining the namespaces used in sample portions of web-client-config-custom.xml.

Can someone please point me in the right direction?  Thanks!

Outcomes