cancel
Showing results for 
Search instead for 
Did you mean: 

Help with button and form

davidez
Champ in-the-making
Champ in-the-making
Hi all,
what I'd like to do is a customization of my Alfresco share (version 3.4.d).
I have a site and I want to:

1. add a button on my documentlibrary toolbar;
2. create a form with some controls;
3. pop up this form when button is pushed;
4. deal with user inputs to create folders and documents.

I created the button (point 1) and my problems start at point 2!
Is it possible to do what I described above?

Can you give me some tips? Or some links with some tutorials?
4 REPLIES 4

mikeh
Star Contributor
Star Contributor
Take a look at the code behind "New Folder" - that's doing almost exactly what you want.

Thanks,
Mike

davidez
Champ in-the-making
Champ in-the-making
Thanks Myke,
I found this tutorial http://edlovesjava.blogspot.com/2008/10/surf-4-modifying-share-documentlibrary.html

I'm looking at the code in toolbar.js but nothing happens when I push my button!

I'm trying to use logger.log in toolbar.js but nothing is logged. Can you tell me which row in log4j I have to edit?

davidez
Champ in-the-making
Champ in-the-making
Hi Mike,
do you know how to set a value to the "name" field in create folder form?
I'd like to do that in toolbar.js.

davidez
Champ in-the-making
Champ in-the-making
Maybe this information is usefull for somebody:
To make that example works, at the end you need to stop tomcat service, re-create toolbar-min.js with command java -jar yuicompressor-2.4.6.jar -o toolbar-min.js toolbar.js (need yuicompressor-2.4.6.jar), clear browser cache and restart tomcat.