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
Solved! Go to Solution.
They are defined as forms for Share as "packageItems":
And this is how the control is rendered:
They are defined as forms for Share as "packageItems":
And this is how the control is rendered:
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.
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?
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.
I know about two addons that seems to exactly that:
SKYTIZENS Alfresco Task Document Viewer
I have not tested them though.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.