ITDSystems / alvex-uploader

1 stars 9 forks source link

Uploader doesn't appear #10

Open prvsousa opened 7 years ago

prvsousa commented 7 years ago

I'm trying to integrate an uploader of file in a task form of a workflow "share/page/task-edit?" However, I add in the <field-visibility> this:
<show id="packageItems" force="true" />

And in the <appearance>:


<field id="packageItems" set="other8">                                                      
            <control template="/alvex-uploader.ftl">                                                  
              <control-param name="uploadDirectory">uploads</control-param>                           
              <control-param name="createUploadDirectory">true</control-param>                        
            </control>                                                                                
          </field>   

However, doesn't appear nothing on the form. Also, there are no errors in the logs.

Any idea?

aviriel commented 7 years ago

It should work. Here are sample that works: https://github.com/ITDSystems/alvex-custom-workflows/blob/master/share/src/main/amp/config/alfresco/web-extension/alvex-parallel-review-20-config.xml#L41 Does it appear on the form if you try to use default control?

prvsousa commented 7 years ago

What do you mean by "default control"?

Thanks for the answer.

prvsousa commented 7 years ago

It appears now, it was a problem of my configuration. However, it doesn't appear "Upload New File", only the file of the workflow. How can I solve this problem?

aviriel commented 7 years ago

Looks like on this stage of the workflow packageItems is available for view only. How does it work in the stage where you can edit it?