Forum Discussion
ttadej
7 years agoAdvisor
You can accomplish this quite easily.
This should be enough direction to get you started:
- Add a new component to the MessageSearchItem quilt (this will be each search result where the message context is available!)
- In your new component, add this code
<#assign message = (env.context.message)! /> <#if message?? && message!?has_content> <#assign singleMessage = rest("2.0", "/messages/" + (message.uniqueId)!?url).data![] /> <@searchResultMacro result=singleMessage! /> </#if>
Now you have access to data on each message. In your searchResultMacro macro you can look at result.board.id and change the icon (and anything else) based on the data.
The only caveat here is that overriding this quilt wipes out Lithium's out-of-the-box markup.. but it can be recreated with some copy/paste action.
Hope that helps
Related Content
- 4 months ago
- 5 years ago
- 2 years ago