cancel
Showing results for 
Search instead for 
Did you mean: 

How to manage the custom models using model manager

udayakumar_p
Confirmed Champ
Confirmed Champ

We have custom model defined, say commonModel.xml which has been placed into alfresco\extension\custom folder in the installation.

The model has several custom types defined. One of the property, say common:keywords has a list of allowed values. This list is defined with a constraint as below.

<constraints>
<constraint name="common:keywordsList" type="LIST">
<parameter name="allowedValues">
<list>
<value>contactus</value>
<value>mobile</value>
<value>newsletters</value>
<value>order_status</value>
<value>other</value>
</list>
</parameter>
</constraint>

This list keeps on growing and new keywords need to be added whenever we have requirement. Every time we have to go and modify this model and restart alfresco. Instead if we have a way to manage this model via share UI it would be easy to add the keywords whenever necessary. Even a business person can go and add the keywords.

Any approach to this?

1 ACCEPTED ANSWER

douglascrp
World-Class Innovator
World-Class Innovator

Ok, reading the information provided into the project's page:

to build and install the artifact in your local Maven repository.

The output is one amp-file to be installed into the repository part of your Alfresco installation and one jar-file that is needed by Alfresco Share.

You have to put the amp file inside the amps folder (repository part).

For the jar:

otherwise drop the jar-file in to tomcat/shared/classes of your installation and install the amp with the mmt-tool.

Put the jar file in the mentioned path, <alfresco_install_folder>/tomcat/shared/classes

PS: I believe there must be something wrong with the latest instruction, as jars usually go inside the <alfresco_install_folder>/tomcat/shared/lib, but you should try the way the author tells you to do.

View answer in original post

12 REPLIES 12

cesarista
World-Class Innovator
World-Class Innovator

Hi:

One option is to use a dynamic list, that can be managed by an Alfresco admin, in Share admin interface.

GitHub - Redpill-Linpro/alfresco-listmanager: Component used to manage custom list of values used in... 

Regards.

--C.

Thanks for the prompt response. Can it be used for multi select list? I see that the field control is mentioned as 

customselectone.ftl

cesarista
World-Class Innovator
World-Class Innovator

Hi

I just used it with customselectone... but try it with other ftl component, surely it is not difficult to make it work.

Regards.

--C.

douglascrp
World-Class Innovator
World-Class Innovator

We have been using our own addon for this kind of problem:

GitHub - dgcloud/alfresco-value-assistance: Configurable value assistance module for Alfresco Share ... 

With it, you can use the multi-select list.