cancel
Showing results for 
Search instead for 
Did you mean: 

AWE editor in WCM QS

dmihelj
Champ in-the-making
Champ in-the-making
Hello!

I'm trying to add new field ("ws:relatedArticles") to awe editor window and it shows me the noderef of related article if I set the control to "textfield.ftl".

But If I define the field like this:
<field id="ws:relatedArticles" >
   <control template="/org/alfresco/components/form/controls/association.ftl" />
</field>

it doesn't show me the select button with picker for related articles. What am I doing wrong?

Thanks.
4 REPLIES 4

dmihelj
Champ in-the-making
Champ in-the-making
Let me explain:

What is wrong with this "awe-config-custom.xml":
   <config evaluator="model-type" condition="ws:article">
      <forms>
         <!– Default form configuration for the ws:article type –>
         <form>
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="cm:content" force="true" />
               <show id="ws:templateName" force="true" />
            <show id="ws:relatedArticles" />
            <show id="cm:taggable" for-mode="edit" force="true" />
            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:description">
                  <control>
                     <control-param name="activateLinks">true
                     </control-param>
                  </control>
               </field>
               <field id="cm:content">
                  <control template="/org/alfresco/components/form/controls/content.ftl">
                     <control-param name="forceEditor">true
                     </control-param>
                     <control-param name="editorHeight">400</control-param>
                     <control-param name="editorWidth">600</control-param>
                     <control-param name="richMimeTypes">text/html,text/xhtml</control-param>
                     <control-param name="editorAppearance">custom</control-param>
                     <control-param name="editorParameters">
                        plugins: "fullscreen,paste",
                        file_browser_callback :
                        'shareFileBrowser',
                        paste_create_paragraphs : false,
                        paste_create_linebreaks : false,
                        paste_use_dialog : true,
                        paste_auto_cleanup_on_paste : true,
                        paste_convert_middot_lists : false,
                        paste_unindented_list_class : "unindentedList",
                        paste_convert_headers_to_strong : true,
                        theme_advanced_buttons1:
                        "bold,italic,separator,formatselect,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,separator,link,unlink,separator,image,separator,undo,redo,separator,cut,copy,paste,pastetext,pasteword,image,help,code,fullscreen",
                        theme_advanced_buttons2: "",
                        theme_advanced_buttons3: "",
                        theme_advanced_resizing: true
                     </control-param>
                  </control>
               </field>
            <field id="ws:relatedArticles" >
               <control template="/org/alfresco/components/form/controls/association.ftl" />
            </field>
               <field id="cm:taggable">
                  <control>
                     <control-param name="compactMode">true</control-param>
                     <control-param name="params">aspect=cm:taggable</control-param>
                     <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                     <control-param name="createNewItemIcon">tag</control-param>
                  </control>
               </field>
            </appearance>
         </form>
      </forms>
   </config>

that it doesn't show Related articles and Tags in AWE:

[img]http://a.imagehost.org/0226/awe.jpg[/img]

Thanks.

bremmington
Champ on-the-rise
Champ on-the-rise
Hmm. See what you mean. We'll look into it.

bremmington
Champ on-the-rise
Champ on-the-rise
I've raised this in Jira as ALF-6563

dmihelj
Champ in-the-making
Champ in-the-making
Thank you very much.