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.
Hi,
how can i add document preview feature into SearchResultPropertyLink?
Reards
janaka
Follow these steps...
thanks dave. i use NodePreviewService and PropertyLink. it is working.
i have one issue , i need to pass mimetype with node otherwise title of dialogbox is empty.
how to pass that node? i have used following, but node is not working please correct this.
{
name: "alfresco/renderers/PropertyLink",
config: {
propertyToRender: "displayName",
publishTopic: "ALF_SHOW_NODE_PREVIEW",
publishPayload: {
node:{
mimetype:"{mimeTypes}"
}
If you look at the JSDoc for the SHOW_NODE_PREVIEW topic you'll see that it expects either a "node" or "nodeRef" parameter in the payload. By default the PropertyLink will publish the currentItem (that is the search result) when clicked (you can stop it publishing the currentItem by configuring "useCurrentItemAsPayload" to be false. You should not need to configure a publishPayload at all.
Can you clarify how it is not working. I think that the issue may be that the NodePreviewService is not actually present in the default faceted search page so you should add it to the model.jsonModel.services array in your extension.
Once you've done this, if it's still not working you should use the pub/sub log (accessed from the "Debug Menu" of Share) to confirm that the subscription is being created and that the correct publication is being made.
Hi dave,
i have used my own aikau dashlet and render document details by using alfSearchResult. Also i have used 'PropertyLink' for 'displayName' column and NodePreviewService as service. publishTopic in 'PropertyLink' is 'ALF_SHOW_NODE_PREVIEW'. i set payload as follow and set useCurrentItemAsPayload to be false. it can pass necessary parameter (node,nodeRef,displayName) into function of service. then it can properly popup document , when click on particular document.
mimetype:"{mimetype}"
},
nodeRef: "{nodeRef}",
displayName:"{displayName}"