First of all, thanks for your answer Dougs.
So if I understand well, my only option is to :
- have a list with each tkb's href (or id) i want to display my component
- In my component check if the tkb href attribut (or id) is within the list describe above
- and then display (or not) the content.
It thought about a solution like this, but it's not an optimal option since it would mean that every time someone of the communication add a tkb, he will need to ask me to add it in the 'display my component' list...
Wich lead to my second question : is there a way, when someone create a new tkb, to add attributs in the tkb xml description wich is return by the rest API?
So I could get something like that :
<#assign message_id = env.context.message.uniqueId />
<#assign message = rest("/messages/id/" + message_id).message />
<#if message.root.@href == message.@href AND message.root.@display_content==true>
<#-- add component content here -->
</#if>
Again, thanks for reading.
-niten