cancel
Showing results for 
Search instead for 
Did you mean: 

custom property and default value

vincent-kali
Star Contributor
Star Contributor
Hi all,
I'm writing a custom aspect with associated properties.
I would like to use some other existing properties as default value for my custom properties:
example:
         
<blockcode>
            <property name="my:modified">
                <title>myModified</title>
                <type>d:datetime</type>
      <mandatory>false</mandatory>
      <default>cm:modified</default>
            </property>
</blockcode>
But alfresco refuse it (Context initialization failed).

Is there any way to do this ?

Thanks,
Vincent

2 REPLIES 2

scouil
Star Contributor
Star Contributor
I don't think you can just put a reference to another field in the default, It has to be a static value.
If you want to do that, you should probably use a folder rule or a behaviour.

too bad…
thanks for your reply.

Vincent