adamo
#1
Is it possible - and how if so to include a component inside another component that’s used as a snippet?
This works if the component is placed normally inside a page:
$this->addComponent('...);
But when used as a snippet the nested component isn’t showing.
chris
#2
Hi @adamo
did you register the component as a snipper in the plugin or is it just a partial file in the snippets
folder of your theme?
adamo
#3
The snippet is registered via the plugin.
chris
#4
then make sure to $this->addComponent('...);
in the init
method of your component, it should be working
adamo
#5
I’ve it added like this. When used in a page setting it works but as a snippet it doesn’t. The’re no errors in the console either.