cancel
Showing results for 
Search instead for 
Did you mean: 

[Solved][Share] Customise DocumentList

lamba
Champ on-the-rise
Champ on-the-rise
Hello,

I created a custom folder type and I added it to Alfresco 3.2r2 with succes.
For this custom folder type, I have a specific contents to show by using a WebScript.
For Alfresco Explorer, I was able to do it by replacing browse.jsp by custombrowse.jsp in web-client-config-custom.xml as follows:

   <config evaluator="node-type" condition="csf:customFolderType">
      <navigation>
         <override from-view-id="/jsp/browse/browse.jsp" to-view-id="/jsp/browse/custombrowse.jsp" />
      </navigation>
   </config>

NB: the file custombrowse.jsp contains the call of my WS.

But for Share I do not know how could I do it?
I think that it is necessary to modify WebScript doclist.get or the file documentlist.js, is this true?

help please.


Thank you in advance.
22 REPLIES 22

lamba
Champ on-the-rise
Champ on-the-rise
Oh! yes Mike Smiley Happy
Andrew is my co-worker and I received the answer of Ashutosh.

Thank you.

lamba
Champ on-the-rise
Champ on-the-rise
What I want, it is to show the doclist according to the following treatment:

If the folder have a customFolder type:
Do not use the "widgets.dataSource" and "widgets.dataTable"
But create an iframe in the doclist zone of the WS documentlist.get.html.ftl
And this iframe will call a WS which I developed.

Otherwise:
Use the "widgets.dataSource" and the "widgets.dataTable"

Solved Smiley Happy

The good place is in the method _" updateDocList "


All Praise is due to Allah the Lord of the Worlds Smiley Happy

lamba
Champ on-the-rise
Champ on-the-rise
My question now, how could I get back the nodeRef of the current or parent node from the file documentlist.js  :?:

Solved Smiley Happy

Information got back by the following lines:

var recordFound = this._findRecordByParameter(pathName, "fileName");
var nodeRef = recordFound.getData("nodeRef");

Thank you All very much Smiley Happy

Good Day.