cancel
Showing results for 
Search instead for 
Did you mean: 

How to make a custom 'Widget'?

leatherface
Champ in-the-making
Champ in-the-making
Hi, i have to made a custom widget to store a property in a content type. I didn't find any tutorial about that, for example if a want to create a component (html+javascript) that store lat and long with a google maps widget and not to insert direcly in one or two textfield, how can I do that?
Are theare any example?

Thanks a lot
7 REPLIES 7

dranakan
Champ on-the-rise
Champ on-the-rise
Hello,

Take a look here : http://wiki.alfresco.com/wiki/How_to#Dashlet

Good luck Smiley Happy

leatherface
Champ in-the-making
Champ in-the-making
Hello,

Take a look here : http://wiki.alfresco.com/wiki/How_to#Dashlet

Good luck Smiley Happy
Ok, thank you. But i want to use this component in the form where user insert a content (in the backend). Are there any solutions?

dranakan
Champ on-the-rise
Champ on-the-rise
I am not sure to have all understand, could you precise what you want to do ? (Where do you want to show your widget displaying a map?)

leatherface
Champ in-the-making
Champ in-the-making
I am not sure to have all understant, could you precise what you want to do ? (Where do you want to show your widget displaying a map?)
I want to use a widget like this (http://code.google.com/apis/ajax/playground/#map_geocoding_simple) in the form where user insert a content (in the backend) and store the coordinates in a property of the content.
Is it possible?

dranakan
Champ on-the-rise
Champ on-the-rise
You can write your custom properties page (make a copy of the originial, adding your map) and modify the navigation rules to point to your custom page.

Someone have done that to show the workflow history : http://www.wowww.nl/wordpress/2007/09/14/creating-an-alfresco-task-history-the-java-style/

Does someone think about a better solution ?

leatherface
Champ in-the-making
Champ in-the-making
You can write your custom properties page (make a copy of the originial, adding your map) and modify the navigation rules to point to your custom page.

Someone have done that to show the workflow history : http://www.wowww.nl/wordpress/2007/09/14/creating-an-alfresco-task-history-the-java-style/

Does someone think about a better solution ?

Mmmm, ok thank you, anyone know if is there another solution for insert the widget in the form like a texfield or date picker?

rsulliv1
Champ in-the-making
Champ in-the-making
Looks like dranakan is missing the key term, "Widget". Correct me if I'm incorrect, but you're trying to create a custom xform widget with the dojo javascript framework.

The only real documentation I can find from alfresco is http://wiki.alfresco.com/wiki/Creating_XForms_Widgets . This page doesn't really give anything except a partial high-level description of the widget framework in alfresco.

I'm currently looking to customize a few widgets myself (dependent form elements) so I'm very interested in any available information on this.

Have you made any progress in your search?