Forum Discussion
Hi Adam,
If the standard component cannot be modified, can I create a silimar custom component to the standard one which I suppose to edit or there is any other ways to achieve this? To be specific, there is a standard component called 'message-list' which I want to add the number of posts between the message title and the posted time as shown in attached screenshot.
Thanks,
Andy Yu
HI Andy,
Unfortunately there is no easy way to do this. Re-making a standard component isn't easy, especially something like 'message-list', which has a fair amount of message related data. There are two ways that I can think of that you could do this though:
1) Create a custom component and add it to the page that contains the 'message-list' component. This component will contain jquery code that will look up each message id (by CSS or element id), then make the relevant REST API call to get the number of posts for that message. You can then display the count between the message title and the posted time using jquery and HTML/CSS. Please keep in mind though that this could slow down the page load time (depending on the number of messages on that page).
2) The other way would be to contact Professional Services (or Support), I believe they have the ability to modify the order of the information displayed on the 'message-list' component. If you were to create a custom component that displays the number of posts for a message, they should be able to add that component into the order.
If you need any help with either 1 or 2, just let me know!