Forum Discussion

vishwajit_shind's avatar
10 years ago

How to bring avatar and message body in the message-list component.

Hi,

 

Can anyone suggest me how will i able to bring User avatar and message body in the message-list component?

 

Regards,

Vishwajit

2 Replies

  • vishwajit_shind - This would require you to get components added to the message list from Lithium Support. Once the message grid layout for the standard board message list component are added, the components to edit are custom.grid.contributor-cell (avatar goes here), you'd then need to use some coding to bring the avatar and body to the list.

     

    You will want to use this variable in your rest calls in this component:

     

    env.context.component.getParameter("message").uid 

     

    That is the id of the message being displayed in a particular row. Li support will add the components according to your requirements.

     

    The names I provided above were the once added on our instance, so please don't get confused by them.

     

    I hope this helps.