cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Type not showing in UI

jett
Champ in-the-making
Champ in-the-making
I have crated a custom type and deployed it to the Data Dictionary/Models folder in Alfresco. I have also created created a web client custom config file and added it to Web Client Extensions. I then reloaded client config via the console in : http://localhost:8080/alfresco/faces/jsp/admin/webclientconfig-console.jsp

When I try to create a rule that will specialise a file using my custom type, I am only getting a blank dropdown when prompted to Select Type in the Rule Wizard.

I remember seeing this problem before but can't remember how I fixed it. All documentation point towards everything I've already done. The model and custom web config appear correct as I am not getting any errors when they are loaded.

I am getting the same problem in Community 4.2 and 4.0 so I assume it must be somewhere in my files (attaching below)

Thank you in advance for any assistance
11 REPLIES 11

dhartford
Champ on-the-rise
Champ on-the-rise
I'm also experiencing this problem, and I have run into similar issues in the past (I'm unsure how to search just this forum to see if I found an answer or not, but I do not believe I did).

However, I have tested 4.2.b, and have found that my content model types show up in CMIS, but do not show up in the (alfresco) content type pulldown, while others show up in both…without any difference in logs between when successfully showing up in the alfresco content type pulldowns versus those that do not (but all show up in CMIS).

[DHARTFORD SOLVED] - mine was restarting the server.  The (alfresco) content type is defined in the Data Dictionary/Web Client Extensions/web-client-config-custom.xml, but doesn't get loaded until after a restart.

jett
Champ in-the-making
Champ in-the-making
I actually tried restarting mine several times but it is still not working

jett
Champ in-the-making
Champ in-the-making
I just noticed that the log shows the following message when I did a dynamic deployment of the model:

11:40:22,451 WARN  [org.alfresco.repo.dictionary.DictionaryDAO] org.alfresco.service.cmr.dictionary.DictionaryException: 01060019 Model '{com.meralco.mapguide}mapguideModel' does not exist

I am getting the same message in the log when I activate the model manually using the Repository Admin Console.

However, doing a "show models" in the Repo Admin Console indicates that it is loaded:

IsLoaded: Y , RepoVersion: null , RepoName: meralco-mapguide-model.xml , ModelQName: {com.meralco.mapguide}mapguideModel , Description: MapGuide Model , Author: xxxxxx , Published: null , Version: 1.0

abarisone
Star Contributor
Star Contributor
Hi,
did you correctly register your model in Spring's model extension configuration file
<blockcode>
<!– Registration of new models –>
    <bean id="uirnet.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">
            <list>
                <value>alfresco/module/yourModule/model/yourModel.xml</value>
            </list>
        </property>
    </bean>
</blockcode>

Regards,
Andrea

jett
Champ in-the-making
Champ in-the-making
Hi Andrea,

My custom models are all deployed dynamically by uploading the file to Data Dictionary/Models and marking it as Active in the file properties. I haven't attempted to do it via the non-dynamic route as I distinctly remember getting this working on Alfresco Enterprise 4.0 Trial. So far I've tested this on Community versions 4.0, 4.2b, and 4.2c with no success.

mitpatoliya
Star Collaborator
Star Collaborator
could you please post your we-client-config-custom.xml?
also have you checked the logs?

jpfi
Champ in-the-making
Champ in-the-making
Hi,
Are you aware that web-client-config is only used in Alfresco Explorer (alfresco.war) & not in Alfresco Share (share.war)?
Cheers, Jan

mitpatoliya
Star Collaborator
Star Collaborator
Yes Jett agree with jpfi,

I am assuming that you are trying to find that thing in alfresco explorer not in share.
If you want something to be shown up in the share you need to configure it in the share-config-custom.xml file

sindhu
Champ in-the-making
Champ in-the-making
I have created a custom folder type through xml files and I have even configured in share-config-custom.xml file.
How to check it in the alfresco share through UI directly.
Please help…