AnsweredAssumed Answered

Remove '<p>' tag in comment  text for Alflist

Question asked by nancygaillard on Oct 1, 2015
Latest reply on Oct 27, 2015 by ddraper
Hello everybody,

I am developing a Aikau Page for Alfresco Community 5.0.d with Aikau 1.0.8 on my Windows 7 (but for a Windows Server 2008 R2).
I am using the Webscript : http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/ce71fb5d-e238-4fc7-ab1b-f5bf69b81d34/comments
to list my comments in a AlfList, but it is so ugly to have the content between "p" html tags :/ …  so I need some help to remove them, If somebody know how to do this, I listen…

There is a screen of the rendering and the concerned part of code :
[img]https://cdn-forums.alfresco.com/sites/forums/files/ugly%20comments.JPG[/img]
<blockcode>
{
   name: "alfresco/lists/AlfList",
   config: {
      generatePubSubScope: true,
      waitForPageWidgets: false,
      loadDataPublishTopic: "ALF_CRUD_GET_ALL",
      loadDataPublishPayload: {
         url: "api/node/{noderef}/comments",
      },
     widgets: [
         {
           name: "alfresco/lists/views/AlfListView",
           config: {
               widgets: [
                 {
                  name: "alfresco/lists/views/layouts/Row",
                  config: {
                    widgets: [
                     {
                       name: "alfresco/lists/views/layouts/Cell",
                       config: {
                        widgets: [
                           {
                             name: "alfresco/renderers/Property",
                             config: {
                                 propertyToRender: "content"
                              }
                           }
                        ]
                       }
                     },                                                      ,
                     {
                       name: "alfresco/lists/views/layouts/Cell",
                       config: {
                        widgets: [
                           {
                             name: "alfresco/renderers/Date",
                             config: {
                                 modifiedDateProperty: "modifiedOnISO",
                                 modifiedByProperty: "author.username",
                                 simple: false
                              }
                           }
                        ]
                       }
                     }
                    ]
                  }
                 }
               ]
            }
         }
      ]
   }
}
</blockcode>

Attachments

Outcomes