06-14-2018 06:41 AM
Hi,
I 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
06-14-2018 07:06 AM
They are defined as forms for Share as "packageItems":
And this is how the control is rendered:
06-14-2018 07:06 AM
They are defined as forms for Share as "packageItems":
And this is how the control is rendered:
06-14-2018 07:44 AM
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
06-14-2018 07:58 AM
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.
06-22-2018 10:11 AM
I know about two addons that seems to exactly that:
SKYTIZENS Alfresco Task Document Viewer
I have not tested them though.
06-14-2018 10:02 AM
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?
06-14-2018 02:33 PM
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
06-15-2018 03:45 AM
My suggestion is to add an action.
Explore our Alfresco products with the links below. Use labels to filter content by product module.