cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple text fields in custom content

lordzoster
Champ in-the-making
Champ in-the-making
Hallo
I'd need to create a content which has to be edited later in some portions of text only.
These portions could be anywhere in the whole text - not in predefinable positions - and in any quantity.
This would normally be a sort of one-to-many relation between fragments and a parent document, but the author needs to have them in a single screen, maybe a single form.
So, two alternatives:
1 - could I make in Alfresco a form containing multiple contents all belonging to a parent content, so that the author can edit/create/see them at once?
2 - could I make a form where the user can add at runtime textareas with their own "readonly" checkbox?

Any suggestion?

Thanks in advance
2 REPLIES 2

anasammoura
Champ in-the-making
Champ in-the-making
Hi,
I am new user in alfresco and I am trying to add new Custom aspect put the aspect didn't appear in the action Wizards and this is code that i added it.

customModel.xml
================================================
<blockcode>
<aspects>  
        <!– Definition of new Content Aspect: Customer Details –>
            <aspect name="custom:CustomerDetails">
                     <title>Customer Details</title>
                <properties>
                        <property name="custom:CustomerName">
                              <title>Customer Name</title>
                              <type>d:text</type>
                        </property>
                        <property name="custom:CustomerContactName">
                              <title>Customer Contact Name</title>
                              <type>d:text</type>
                        </property>
                        <property name="custom:CustomerContactPhone">
                               <title>Customer Contact Phone</title>
                               <type>d:text</type>
                        </property>
                        <property name="custom:CustomerProjectID">
                                <title>Customer Project ID</title>
                                <type>d:int</type>
                        </property>
                        <property name="custom:NewCustomer">
                                <title>New Customer</title>
                                <type>d:boolean</type>
                        </property>
                </properties>
         </aspect>     
</aspects>
</blockcode>
=====================================================

web-client-config-custom.xml
=====================================================
<blockcode>
<config evaluator="string-compare" condition="Action Wizards">
             <aspects>
                  <aspect name="custom:CustomerDetails"/>
             </aspects>
          <subtypes>
                  <type name="customSmiley Tongueressrelease"/>
             </subtypes>
    </config>
   
   <config evaluator="aspect-name" condition="custom:CustomerDetails">
             <property-sheet>
                  <separator name="sepCust1" display-label="Customer Details" component-generator="HeaderSeparatorGenerator" />
                   <show-property name="custom:CustomerName"/>
                   <show-property name="custom:CustomerContactName"/>
                   <show-property name="custom:CustomerContactPhone"/>
                   <show-property name="custom:CustomerProjectID"/>
                   <show-property name="custom:NewCustomer"/>
             </property-sheet>
    </config>
</blockcode>

mitpatoliya
Star Collaborator
Star Collaborator
Your configurations are fine.
This changes will be reflected in Alfresco webclient only not alfresco share. Hope you are looking at right location.