Document preview in Edit Task page

Showing results for 
Search instead for 
Did you mean: 
Senior Member

Document preview in Edit Task page


As i am filling information about the attached document I would like to simultaneously preview it. Especially because the whole right side of my browser page in totally empty.

Is there a simple way to achieve it?

I know it is possible to obtain a URL to the content (but how?) so i could just insert it to the HTML iframe tag and then  modify edit task page Freemarker Template (but where is it?) by creating second column (which will fill the right side of the Edit-Task page).

I am using Alfresco 6.1

I thing it should be very common thing to do but i did not find any simple, complimentary & up-to-date guildlines.



Alfresco Developer
1 Reply
Active Member II

Re: Document preview in Edit Task page


To add document ‘s preview and its actions in edit task you have to edit workflow-details page .ftl file which is OOTB available at


  1. First import ftl, js, css files in template header which are available in actual preview of documents.
  2. In body part of template add like this,

    <#if page.url.args.nodeRef??>





    <div class="yui-gc">

    <div class="yui-u first">

    <@region id="metadata-web-preview" scope="template" />

    <@region id="metadata-comments" scope="template"/>


    <div class="yui-u">

    <@region id="metadata-document-actions" scope="template" />

    <@region id="metadata-document-links" scope="template" />

    <@region id="metadata-document-metadata" scope="template" />

    <@region id="metadata-document-workflow" scope="template" />

    <@region id="metadata-document-versions" scope="template" />



    <@region id="metadata-html-upload" scope="template"/>

    <@region id="metadata-flash-upload" scope="template"/>

    <@region id="metadata-file-upload" scope="template"/>

    <@region id="metadata-dnd-upload" scope="template"/>



  3. customize my-task.js file to pass noderef of attached document during opening task edit page at


Prachi Shah