package url in header.php?
Permalink
I need to load some javascript and css from a particular block package in my header.php so I can hard code the block into a page type. I've looked high and low, including the cheat sheets, but not been able to find exactly what I need - maybe I'm missing something.
Essentially, what I'm after is something like
but for packages, so that in my header I'd end up with something like
I know there is but as far as I can tell that will only work within the block environment, not in the header, correct?
Suggestions welcome, otherwise I'll just have to manually put in the full path from root.
Richard
Essentially, what I'm after is something like
<?php echo $this->getThemePath(); ?>
but for packages, so that in my header I'd end up with something like
<link rel="stylesheet" type="text/css" href="<?php echo $this->getPackagePath(); ?>/packages/mypackage/blocks/mypackage/css/mypackage.css?')?>" />
I know there is
<?php echo $this->getBlockURL() ?>
Suggestions welcome, otherwise I'll just have to manually put in the full path from root.
Richard