cancel
Showing results for 
Search instead for 
Did you mean: 

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

nancygaillard
Champ on-the-rise
Champ on-the-rise
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-f5bf69...
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>
1 REPLY 1

ddraper
World-Class Innovator
World-Class Innovator
The first thing that is interesting here is that you're using 5.0.d with Aikau 1.0.8… because that shouldn't even be possible and might be the reason that you're running into problems. The external Aikau libraries are only supported from 5.0.1 and onwards.

Also, are you also aware of the "alfresco/renderers/CommentsList" that has been added in later versions of Aikau? This might actually solve the problems you're trying to resolve.

Finally, I can't see the link between the screenshot you've posted and the Aikau model provided… what is it that is actually generating that dialog?