The issue here is that if I don’t redefine the “param” parameter in my second component, the value is still “test”, the only solution is to redefine it as empty like that :
{% component 'mycomponent' param="" %}
It can do the job, but my component have many many params :
I’m looking for a way (if possible) to reset parameters values between my components call. I know that I could have several times the same component with different name, but we are talking about a component I use maybe 10 or 20 times in a page and it’s really not a solution to me to add a new component each time I need to call it.
Thank you for your answer, this is not exactly what I’m looking for. I’m already retrieving my component properties with $this->property(‘param’). What I want is the followig :
{% component 'mycomponent' param="test" %} this output test
{% component 'mycomponent' %} I want this to output nothing, actually it output "test"
Shame, this make my whole plugin idea useless . If somebody have a method, even a hacky one to “reset” parameters values between different call of the same component, I’m really interested.