Forum Discussion
- chriguGuide
usually I hide parts of standard components in CSS. This means that I locate it in the HTML and set the "display" property to "none" for the class of that element. Sometimes this is tricky as one should only use elements with classes that have "lia-" as prefix. They lia- classes are guaranteed to be around in future releases of the platform.
- AdamNKhoros Oracle
As chrigu suggested, styling via CSS is a great way to change the look and feel of standard components, including hiding undesired elements within the standard components.
Unfortunately, it is not possible to edit the code of standard component like you would a custom component.
- andyyuContributor
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
- VenkSLithium Alumni (Retired)
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!
Related Content
- 13 years agoInactive User