Hi, I'm trying to find an elegant way in T5.1 to ensure that a page contains one and only once instance of a given component.
My initial idea was to define a base page class that has the logic to render the component using the Component annotation, and to check for duplicates of the same component (to remove them or to generate an exception). Unfortunately, I was no able to get it working properly, I get either an exception during the rendering phase or the template of that component is not rendered at all. I though about using an approach similar to the layout component as a workaround, thus avoiding the inheritance among pages, but I prefer to use thus approach as B-plan. Do you have any suggestion ? Thanks -- Alessio --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
