pp_01
7 years agoMentor
Removing OOTB Labels component from OOTB topic-message component.
Hi everyone,
On our Forum Topic Page, we have the OOTB topic-message component positioned in the main-content. I would like to know that if there's any way I can add any xml parameters to remove the OOTB Labels component which is coming in side the topic-message component so that all the other content coming inside the topic-message component can be retained and only the Labels component can be removed. Thanks in advance.
- Hi pp_01,
You can achieve your requirement by either removing the component or in case you want to do with parameter approach then yes you can pass XML parameter such as visibility="hide" and fetch the value of that parameter inside custom component using the following method :
<#assign visibility = env.context.component.getParameter("visibility")!"" />
After that wrap the labels component according to your condition in if tag.