cancel
Showing results for 
Search instead for 
Did you mean: 

Creating customised browse.jsp for a folder type

samuel_penn
Champ in-the-making
Champ in-the-making
Hi all,

I've created a new custom space type (inheriting from cm:folder), and I want to display my own view onto that space when a user navigates into it. To this end, I've copied and modified browse.jsp (currently it just hides the space and content view, leaving the custom view to display a presentation template).

I've placed the following configuration into web-client-config-custom.xml:

<code xml>
    <config evaluator="node-type" condition="centrom:database">
        <navigation>
            <override from-view-id="/jsp/browse/browse.jsp" to-view-id="/centrom/jsp/database.jsp" />
      </navigation>
    </config>
</code>

When a user navigates into a space of our content type, the new database.jsp view is displayed as expected, and this works just fine. However, when the user navigates out of that space (by clicking on the breadcrumb, or in the navigation sidebar) our custom view is retained - Alfresco doesn't switch back to using browse.jsp

What am I missing? Not being an expert on JSF, I would have expected the above configuration to only kick in if displaying our content type, and the default browse.jsp to be reverted to when the user leaves our content type.

All the documentation I've found so far seems to concentrate on overriding the details page of a content type, rather than the browse view, so doesn't seem to cover this scenario.

Thanks,
Sam.
2 REPLIES 2

eharper
Champ in-the-making
Champ in-the-making
Sam,

Did you find a resolution to this issue?  I am trying to implement a similar thing, but have had no luck with faces navigation customizations, the web-client-config-custom.xml or anything else I've tried.

Thanks,

Eric Harper

samuel_penn
Champ in-the-making
Champ in-the-making
I think I find the solution, but I'm no longer working for the company where I had the problem, so checking to see what the solution was is no longer possible.

Sorry,
Sam.