Sharing Assets for multiple blocks in Packages
Permalink
Hi guys,
I'm building my first package and was wondering how I would go about having a common assets folder within a package for each block to source from.
Is there something similar to BlockType::getByHandle(handle) but instead I could get the path to the directory of the package in which I could just paste into the blocks? I am essentially using images and stylesheets only in the form_setup_html.php file.
Thanks in advance
Ritchie
I'm building my first package and was wondering how I would go about having a common assets folder within a package for each block to source from.
Is there something similar to BlockType::getByHandle(handle) but instead I could get the path to the directory of the package in which I could just paste into the blocks? I am essentially using images and stylesheets only in the form_setup_html.php file.
Thanks in advance
Ritchie