12-13-2022 05:15 AM
Hi Community;
I want to add an aspect 'cc:anydownload'.
In share-config-custom.xml I add the <aspect name="cc:anydownload" />.
And also I create the <aspect name="cc:anydownload"> in customModel.xml.
Restart alfresco, then click 'Manage aspects', I can see the 'cc:anydownload' in the left list.
But when I click 'Apple' button, the system told me that can not add this aspect.
Please refer the picture as following, Thanks!
12-14-2022 02:16 AM
You may follow then this instructions I'm copy-pasting from the link I gave you before:
We’ve put off localizing the form labels until now. To fix this, first create a messages bundle, then register it with a Spring bean. Here are the steps:
In the messages folder, create a new file called "scModel.properties" with the following content:
#sc:doc
type.sc_doc=SomeCo Doc
assoc.sc_relatedDocuments=Related Documents
#sc:whitepaper
type.sc_whitepaper=SomeCo Whitepaper
search.form.desc.sc_whitepaper=Search for SomeCo Whitepapers
#sc:webable
aspect.sc_webable=SomeCo Webable
prop.sc_published=Published
prop.sc_isActive=Active?
#sc:productRelated
aspect.sc_productRelated=SomeCo Product Related
prop.sc_product=Product
prop.sc_version=Version
12-13-2022 10:08 AM
Hi Team;
I add a new aspect, but lost the name, could you please tell me how to solve it? thanks!
12-13-2022 11:27 AM
That should be the "Title" from the content model.
You may find additional information in https://ecmarchitect.com/alfresco-developer-series-tutorials/content/tutorial/tutorial.html
12-13-2022 07:51 PM
Thank you so much for your reply.
Actually, I have set the Title as below, is there something else that I missing?
<aspects>
<aspect name="cc:anydownload">
<title>EveryOne Can DownLoad</title>
<properties>
<property name="cc:isActive">
<type>d:boolean</type>
<mandatory>true</mandatory>
<default>false</default>
</property>
</properties>
</aspect>
</aspects>
12-14-2022 02:16 AM
You may follow then this instructions I'm copy-pasting from the link I gave you before:
We’ve put off localizing the form labels until now. To fix this, first create a messages bundle, then register it with a Spring bean. Here are the steps:
In the messages folder, create a new file called "scModel.properties" with the following content:
#sc:doc
type.sc_doc=SomeCo Doc
assoc.sc_relatedDocuments=Related Documents
#sc:whitepaper
type.sc_whitepaper=SomeCo Whitepaper
search.form.desc.sc_whitepaper=Search for SomeCo Whitepapers
#sc:webable
aspect.sc_webable=SomeCo Webable
prop.sc_published=Published
prop.sc_isActive=Active?
#sc:productRelated
aspect.sc_productRelated=SomeCo Product Related
prop.sc_product=Product
prop.sc_version=Version
12-14-2022 02:47 AM
Yes! as you say so, it works!
Thanks again!
Explore our Alfresco products with the links below. Use labels to filter content by product module.