Sorry, you're right. In the meantime, however, by recreating the code to post I found the solution: I use templates and I realized that in this version the visible property of the content should be set to true / false manually. Thanks anyway