cancel
Showing results for 
Search instead for 
Did you mean: 

Edit metadata in document details page

raptus
Champ in-the-making
Champ in-the-making
Hello everyone,
I have a really simple question: how to insert "edit metadata" dashlet into the "document details" page? I know that this page has many dashlets for a complete document description… but I don't know how to insert new components without errors as new dashlets… for example: edit metadata or a my-tasks dashlet (to manage a workflow)…

How can I do that? I think thats not so hard….doesn't it?

Thanks in advance for reply,

Regards,

Raptus
5 REPLIES 5

raptus
Champ in-the-making
Champ in-the-making
I have half-solved my question (noone answered  :cry: ) by putting a link to the "edit-metadata form" with the correct nodeRef into the document details page.
If someone needs more information I could post my implementations.

But a question still remains: how to insert an "already done" dashlet like "my-task" into the document detail page?  I'd like to move user operations from that dashlet to the document details like "review and approve" buttons.
How can I do?

Thanks again… I hope someone will help me…

Regards,

zaizi
Champ in-the-making
Champ in-the-making
The my task dashlet lists all the tasks assigned to a user. You'll have to create a new share component to look up tasks for the current user to the current document.
You'll have to create some backing webscripts and share component. Then include the component in the document details page. See how other components on that page are built up for examples.

Ainga

raptus
Champ in-the-making
Champ in-the-making
Thankyou for reply, I understand your suggestions but I'm not so expert…
My main problem is that I really don't know how to create a dashlet from a webscript, I have already done a webscript that works on Alfresco to show the user workflows list  but how can I modify this to create a dashlet?
Reading the examples as you suggested I see that a dashlet and a webscripts are two different things.

For example, when I want to put "my-tasks" dashlet into a new page instead of the dashboard I get the "undefined htmlid" error… I guess this is the user identifier that comes with the dashboard doesn't it? So… can a dashlet works outside the dashboard?
Now the only thing I'd like to know is "how to create a dashlet" or "how to modify the my-tasks dashlet" to work into the document details page as a standard webscript.

Sorry for all my questions but I found no documentation about that…

Thankyou again,
regards

Raptus

zaizi
Champ in-the-making
Champ in-the-making
Get the new Alfresco Book. It has details on extending and customising Share.

Also this blog has lots of articles on Share: http://edlovesjava.blogspot.com/search/label/extending%20share

Ainga

raptus
Champ in-the-making
Champ in-the-making
Thanks you were very helpful,
I will buy the book… but I have done most things!
My problem now is to modify and manage workflows…now I can put a standard webscript (only ftl) into the page to show the tasks but  in particular I' d like to create a "take the ownership" button by an alfresco share user as Alfresco explorer do…. how can I do with scripts and share?

thankyou again,

Raptus