cancel
Showing results for 
Search instead for 
Did you mean: 

Add document picker in folder action

fdegave
Champ in-the-making
Champ in-the-making
Hello,

I would like to add an action on a directory to link to another document in this directory.

What is the right method for that?
How to add a document picker action?

regards

Frédéric
5 REPLIES 5

fdegave
Champ in-the-making
Champ in-the-making
i have found this code but the picker is not displayed…

var documentPicker = new Alfresco.module.DocumentPicker(this.id+'-docPicker', Alfresco.ObjectRenderer);
            documentPicker.setOptions(
            {
               displayMode: "items",
               itemFamily: "node",
               itemType: "cm:content",
               multipleSelectMode: false,
               parentNodeRef: node,
               restrictParentNavigationToDocLib: true
            });
            documentPicker.onComponentsLoaded();
            documentPicker.onShowPicker();

douglascrp
World-Class Innovator
World-Class Innovator
I'm not sure if this is the same thing you want to do, but I think you should check this out https://github.com/skomarica/alfresco-share-create-link

fdegave
Champ in-the-making
Champ in-the-making
thanks for reply but i search to do the same thing in the other side, start in a folder to search for a document to link

fdegave
Champ in-the-making
Champ in-the-making

I'm always looking for help on this topic.

sychel
Champ on-the-rise
Champ on-the-rise

Have you found any solution on this topic?