cancel
Showing results for 
Search instead for 
Did you mean: 

How Document list is rederred on on workflow details page

hemantkpn
Champ in-the-making
Champ in-the-making

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 ACCEPTED ANSWER
7 REPLIES 7

hemantkpn
Champ in-the-making
Champ in-the-making

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

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

douglascrp
World-Class Innovator
World-Class Innovator

I know about two addons that seems to exactly that:

SKYTIZENS Alfresco Task Document Viewer 

 

I have not tested them though.

hemantkpn
Champ in-the-making
Champ in-the-making

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
Champ in-the-making
Champ in-the-making

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 

My suggestion is to add an action.

Hyland Developer Evangelist