Powered By Blogger

Friday, January 14, 2011

Folder structure in Share

D:\Alfresco3.3\tomcat\webapps\share

Inside webapps/share folder we have following folders

components
modules
templates
themes
yui

Basically these folders will have the css and javaScript, required by the modules
If you want change the look and feel then we have to touch these files.

For example if you take the example of creating the site then
C:\Alfresco3.4.3\tomcat\webapps\share\modules\create-site.js and C:\Alfresco3.4.3\tomcat\webapps\share\modules\create-site.css will be used.


The actual config files and logic will be available in the below folders.
D:\Alfresco3.3\tomcat\webapps\share\WEB-INF\classes\alfresco

site-webscripts : It will have the actaul webscript. WebScript response can be used as the dashlet by specifying the family, to use as user dashlet or site dashlet.


Alfresco uses the FormProcessor to do the validation of the fields,and changing the data from
our normal form to json format.

// Create the form that does the validation/submit
this.widgets.postForm = new Alfresco.forms.Form(this.id + "-form");
// To make the form submit json data
this.widgets.postForm.setSubmitAsJSON(true);


No comments:

Post a Comment