How Document list is rederred on on workflow details page

cancel
Showing results for 
Search instead for 
Did you mean: 
hemantkpn
Member II

How Document list is rederred on on workflow details page

Jump to solution

Hi,

would like to know how the document list is rendered on workflow details page in Alfresco Share. I mean which components (Java class, Java script, FTL, XML) are responsible to add document list on in workflow-details page.

I searched through the code and found workflow-form.get.html.ftl, however it takes care of all other data to be rendered on this page except document list. Its getting populated dynamically it seems but I don't understand how.

Thanks,

Hemant

1 Solution

Accepted Solutions
angelborroy
Alfresco Employee

Re: Ho Document list is rederred on on workflow details page

Jump to solution
7 Replies
angelborroy
Alfresco Employee

Re: Ho Document list is rederred on on workflow details page

Jump to solution
hemantkpn
Member II

Re: Ho Document list is rederred on on workflow details page

Jump to solution

Thanks Angel.

I don't see where the thumbnail is getting loaded from. Actually, I am intending to launch a document previewer on click on a thumbnail as like in faceted search. 

Hemant

angelborroy
Alfresco Employee

Re: Ho Document list is rederred on on workflow details page

Jump to solution

The first line in the control packageitems is an import of the actual control rendering the elements in the list: association.ftl.

You need to customise / extend that control in order to add that feature. 

Probably it should be easier to add an action at https://github.com/Alfresco/share-old/blob/master/web-framework-commons/src/main/resources/alfresco/... in order to preview the document.

Hyland Developer Evangelist
hemantkpn
Member II

Re: Ho Document list is rederred on on workflow details page

Jump to solution

I don't see a thumbnail icon added in both the files. Just to be sure I am talking about a page that gets loaded on click of "Workflow Details" option while viewing task details. Is the same component being used to populate document list in "Task Details" page as well? 

hemantkpn
Member II

Re: Ho Document list is rederred on on workflow details page

Jump to solution

Hi Angel,

I found the following code in packageitems.ftl that seems to be responsible for generating document URL. 

return Alfresco.util.siteURL(path, { site: item.site }); 

However I am still not sure how it can be associated with a thumbnail and loaded in a popup rather than opening in the same window. Can you please suggest? 

Thanks,

Hemant 

angelborroy
Alfresco Employee

Re: Ho Document list is rederred on on workflow details page

Jump to solution

My suggestion is to add an action.

Hyland Developer Evangelist
douglascrp
Advanced II

Re: How Document list is rederred on on workflow details page

Jump to solution

I know about two addons that seems to exactly that:

SKYTIZENS Alfresco Task Document Viewer 

 

I have not tested them though.