Powered By Blogger

Sunday, September 4, 2011

How documentlibrary folder gets created when we create site in Alfresco



The pages will be defined here


calendar

wiki-page?title=Main_Page

documentlibrary

discussions-topiclist

blog-postlist

links

tasks

knowledgebase




The corresponding page definition will be available in the folder.


C:\Alfresco3.4.1\tomcat\webapps\share\WEB-INF\classes\alfresco\site-data\pages



discussions-topiclist

discussions-topiclist

Discussions

page.discussionsTopicList.title

Displays the forum topics

page.discussionsTopicList.description

discussions-topiclist

user



For the documentlibrary we will hava the below page definition.

Document Library

page.documentLibrary.title

Document library with Tree view

page.documentLibrary.description

documentlibrary

user




If you see the page It has Template-instance, so it will look for template-instance. The template-instance are located at C:\Alfresco3.4.1\tomcat\webapps\share\WEB-INF\classes\alfresco\site-data\template-instances\documentlibrary.xml



The template-instance is made up of the components. Components will have the region-id as below.


org/alfresco/documentlibrary

documentlibrary

documentLibrary

title

/components/title/collaboration-title

portlet-title

/components/title/portlet-collaboration-title

navigation

/components/navigation/collaboration-navigation

actions-common

/components/documentlibrary/actions-common

toolbar

/components/documentlibrary/toolbar

documentlist

/components/documentlibrary/documentlist

true

filter

/components/documentlibrary/filter

tree

/components/documentlibrary/tree

tags

/components/tag-filter

true

html-upload

/components/upload/html-upload

flash-upload

/components/upload/flash-upload

file-upload

/components/upload/file-upload


Here multiple calls will happen.

  1. Call to the template file and the corresponding javascript file.

  2. Call to the region ids

      C:\Alfresco3.4.1\tomcat\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\title

These calls will be continued for each region. By calling seperate webscripts based on the urls.


If you see the org/alfresco/documentlibrary this is also the webscript.

It will call the scripts located in the below location

C:\Alfresco3.4.1\tomcat\webapps\share\WEB-INF\classes\alfresco\templates\org\alfresco\ documentlibrary.js and the corresponding template. The ftl is going to have the definition of the page.



It will connect to alfresco and creats the folder

result = connector.get("/slingshot/doclib/container/" + siteId + "/" + containerId + "?type=" + toRepoType(contentType));





No comments:

Post a Comment