cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a new Java backed search page in Alfresco

pragashonlink
Champ in-the-making
Champ in-the-making
I'd like to create a Java backed web page which can be used as the default search page in Alfresco. First of all I'd like to know if this is possible ? I thought one can achieve this by developing an extension module. But, I couldn't find a tutorial that goes through all the necessary steps that are there in extension module development. Can anybody share some code or guidelines to achieve this. Also, once a web page is deployed as an extension module what is the URL to be used to access that page ?
2 REPLIES 2

arnoldschrijve1
Champ on-the-rise
Champ on-the-rise
This is certainly possible, but requires quite a bit of effort and knowledge to achieve. You'll problably require 2 extension modules, one for the repository backend (installed in the Alfresco webapp) and one that extends the Share UI frontend. Both types of extension can be created with the Alfresco Maven SDK. This SDK is a great help to get you up-and-running quickly. Create your project structure using the Maven Archetypes that are available.
Your Java-backed webscript goes into the Alfresco extension and you either create a new page definition or extend an existing page (e.g. swapping components on the existing Search page with a component you developed that calls your Java-backed webscript in the backend).
You can read a lot of how to do all this in the existing documentation and on the Alfresco wiki.

Thank you, for the response. I'd like to know one more thing, that is I created a new web script and distributed it as an .amp file. This has a ftl file as well. But, when I view the page in the browser it appears very plan. This is because it doesn't have any styles applied to it. Can you tell me how I can apply styles to a page. Also, I'd like to know whether I can retain the menu and other controls that exist in other alfresco pages in this one as well ?