As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<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>
… "metadata": { "parent": { <#if doclist.parent??> "nodeRef": "${doclist.parent.nodeRef}", "nodeType": "${doclist.parent.type}", </#if> "permissions": { "userRole": "${user.role!""}", "userAccess": …
_setupCustomDataTable: function DL__setupCustomDataTable() { var me = this; var parentNodeRef = ????; var src = Alfresco.constants.PROXY_URI + "/custom/browsedoclist?nodeRef=" + parentNodeRef; var customIframe = '"<iframe src="' + src + '" frameborder="0" Marginwidth="0" Marginheight="0" width="100%" height="320" ></iframe>"'; this.widgets.custompanel = new YAHOO.widget.Module(this.id + "-customdocuments", {visible:true } ); this.widgets.custompanel.setBody(customIframe); this.widgets.custompanel.render(); },
var nodeType = me.doclistMetadata.parent.nodeType; if(nodeType === "{extension.Custom}customFolder"){ this._setupDataTable(columnDefinitions); }else{ this._setupCustomDataTable(); }
var nodeType = me.doclistMetadata.parent.nodeType; if(nodeType === "{extension.Custom}customFolder"){ this._setupDataTable(columnDefinitions); }else{ this._setupCustomDataTable(); }
Alfresco.util.Ajax.jsonGet( { url: [webscript URL], successCallback: { fn: this.onDataReturn, scope: this } }); function onDataReturn(response) { // Do something with response.json }
For the e-mail that you forwarded via Ash, I didn't get it.In fact, I didn't know "Ash", what is it?
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.ftlAnd this iframe will call a WS which I developed.Otherwise:Use the "widgets.dataSource" and the "widgets.dataTable"
My question now, how could I get back the nodeRef of the current or parent node from the file documentlist.js :?:
var recordFound = this._findRecordByParameter(pathName, "fileName"); var nodeRef = recordFound.getData("nodeRef");