Magento のカスタム ウィジェットを作成しています。正常に構成されました-ファイルABC/DEF/Resources.php
がロードされて実行されます。
class ABC_DEF_Block_Resources extends Mage_Core_Block_Abstract implements Mage_Widget_Block_Interface{
protected function _prepareLayout(){
var_dump($this->getData());
}
}
経由で静的 CMS ブロックに含まれる場合
{{widget type="def/resources" res="css:test.css"}}
すべてがかなりうまく機能します
array(2) { ["type"]=> string(15) "def/resources" ["res"]=> string(11) "css:test.css" }
CMS->Widgets
ただし、 ( )経由で含めるBlock Reference: Page Top
と、結果は次のようになります。
array(1) { ["type"]=> string(15) "def/resources" }
それを回避する方法はありますか?