cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Development

subhajit
Champ in-the-making
Champ in-the-making
I have downloaded the Alfresco source code. I imported the project in eclipse but unable run or see the webpage as I can see while I install Alfresco in my machine. Is this source code is only for making SDK purpose or I can see the webpage if I run it in eclipse? Where I can found "Alfresco share", "Alfresco Explorer" in the source code, that is available in svn?

Please help me.
28 REPLIES 28

amitabhandari1
Champ in-the-making
Champ in-the-making
Hi Subajit,

Please check Alfresco sdk Login sample which will be helpful for you.

Thanks,

subhajit
Champ in-the-making
Champ in-the-making
I got acpgenerator, and It generated 1 folder named "importContent" and 1 file called "importXML.xml". I ziped it and rename it to .acp. But can please tell me why .acp file? why that extension needs.

subhajit
Champ in-the-making
Champ in-the-making
I am developing one custom content model in alfresco. My model.xml file is like,
<?xml version="1.0" encoding="utf-8"?>
<model name="LIC:customModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
    <!–Optional meta-data about the model–>
    <description>LIC Model</description>
    <author />
    <version>1.0</version>
    <imports>
        <!–Import Alfresco Dictionary Definitions–>
        <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
        <!–Import Alfresco Content Domain Model Definitions–>
        <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />
    </imports>
    <!–Introduction of new namespaces defined by this model–>
    <!–NOTE: The following namespace custom.model should be changed to reflect your own namespace–>
    <namespaces>
        <namespace uri="LIC.model" prefix="LIC" />
    </namespaces>
    <!–Definition of new constraints–>
    <constraints />
    <types>
        <type name="LIC:model">
            <title>Images</title>
            <parent>cm:content</parent>
            <properties>
                <property name="LICSmiley Tongueolicy_number">
                    <title>Number</title>
                    <type>d:text</type>
                    <mandatory>true</mandatory>
                    <default>000000000</default>
                </property>
                <property name="LICSmiley Tongueolicy_holder_name">
                    <title>Name</title>
                    <type>d:text</type>
                    <mandatory>false</mandatory>
                </property>
                <property name="LICSmiley Very Happyoc_type">
                    <title>Type</title>
                    <type>d:text</type>
                    <mandatory>false</mandatory>
                </property>
            </properties>
        </type>
    </types>
</model>


now my context.xml is like,
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!– Registration of new models –>
<bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/LICModel.xml</value>
</list>
</property>
</bean>
</beans>


I copied this 2 files to $TOMCAT_HOME/webapps/alfresco/WEBINF/classes/alfresco/extension. But when I uploaded .acp file its throwing error like "URI LIC.model not found in alfresco dictionary".
Please help me out.

amitabhandari1
Champ in-the-making
Champ in-the-making
Which Alfresco version you are using?

Thanks,

subhajit
Champ in-the-making
Champ in-the-making
Thanx for your reply. I have downloaded the source code from "svn://svn.alfresco.com/alfresco/HEAD/root" and build that and deployed it to Tomcat 6.0.

subhajit
Champ in-the-making
Champ in-the-making
Can anybody please help me out??

amitabhandari1
Champ in-the-making
Champ in-the-making
can you please tell which alfresco version you are using .
Also , can you check if the model is deployed properly . Make changes in web-client-config-custom.xml  and create a content of type 'LIC.model '. If you are not able to see content type in drop down which means , the model is not deploying itself.

Thanks,

subhajit
Champ in-the-making
Champ in-the-making
hi thanx again. I am using Community - v3.4.0, and now can u please tell me the step by step process to deploy a content type? Cos I didnt find any web-client-config-custom.xml.

amitabhandari1
Champ in-the-making
Champ in-the-making
Hi

Check the following links to create content model and deploy within alfresco explorer:

1.http://wiki.alfresco.com/wiki/Step-By-Step:_Creating_A_Custom_Model

2.http://wiki.alfresco.com/wiki/Web_Client_Model_Configuration_Guide_1.2#Content_Type_Properties_in_th...  . This link  will be helpful in adding custom content  .

These are the basic steps to deploy content model .

In summary:
1. Create a model file
2. Create a context file to deploy model
3. Create a web-client-config-custom.xml  for displaying custom content and properties.

Thanks,

subhajit
Champ in-the-making
Champ in-the-making
Again I am getting this error ,

Failed to run Actions due to error: Failed to import package at line 5; column 24 due to error: Namespace URI LIC.model has not been defined in the Repository dictionary

I have added the following web-client-config-custom.xml file in TOMCAT extension folder,
<config evaluator="string-compare" condition="Content Wizards">
      <content-types>
         <type name="LIC:model" />
      </content-types>
   </config>

   <config evaluator="node-type" condition="LIC:model">
      <property-sheet>
         <show-property name="LICSmiley Tongueolicy_number"/>
         <show-property name="LICSmiley Tongueolicy_holder_name"/>              
         <show-property name="LICSmiley Very Happyoc_type" />
      </property-sheet>
   </config>