cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Datalist in alfresco community 6.2.0-ga

vpan
Confirmed Champ
Confirmed Champ

Hello World,

I'm trying to create custom datalist from this example https://docs.alfresco.com/5.2/references/dev-extension-points-data-lists.html

but the model don't appear in the Data list model purpose ...

2 ACCEPTED ANSWERS

abhinavmishra14
World-Class Innovator
World-Class Innovator

You may have missed to apply a mandatory amp "alfresco-share-services".  Amp can be found in the distribution package.  

https://download.alfresco.com/cloudfront/release/community/201911-GA-build-368/alfresco-content-serv...

See the steps and details here: https://docs.alfresco.com/community/tasks/alf-war-install.html

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

View answer in original post

Right,

It's all good now thx a lot for your time

regards,

View answer in original post

10 REPLIES 10

abhinavmishra14
World-Class Innovator
World-Class Innovator

Datalist model is now moved and part of alfresco-share-services.amp module 

In order for you to get the out of the box datalist model in classpath, you need to add following dependency:

 <dependency>
	<groupId>org.alfresco</groupId>
	<artifactId>alfresco-share-services</artifactId>
	<version>${alfresco.platform.version}</version>
	<classifier>classes</classifier>
	<scope>provided</scope>
 </dependency>	

You need to add the dependency in acs module pom.xml. It makes the datalist model available to your custom model

<!-- Import Alfresco Data List Model Definitions -->
<import uri="http://www.alfresco.org/model/datalist/1.0"   prefix="dl" />
~Abhinav
(ACSCE, AWS SAA, Azure Admin)

thx,

but the what the way to do this ...

i don't understand ... does i have to download an extra package ??

do i have just to modify a file ..?

.... sorry i'm lost // just to create a datalist model ....

abhinavmishra14
World-Class Innovator
World-Class Innovator

@vpan may i know where and how you are creating the datalist, are you using sdk ? 

If you are using sdk, you don't need to download any package manually, just add the dependency mentioned above so that you have the share services jar in classpath.

The amp is anyway mandatory for alfresco.war so you would have to apply that if you have setup your server using distribution package. With docker based deployment the module is by default applied. Any custom modules with your custom datalist should work fine.

If you can't see your custom model, make sure you correctly bootstrap it. Cross check all the steps and review logs to see if you can find any errors: https://docs.alfresco.com/6.2/references/dev-extension-points-data-lists.html

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

 

I installed alfresco CE from the standard package (not dockeriser).
With the basic alfreco.war.
The list I'm trying to define
is in / tomcat / shared / alfresco / extension
...
what should I do ..?

Thank you