Skip to main content
added 212 characters in body
Source Link
PЯINCƎ
  • 11.7k
  • 3
  • 26
  • 82

Your are missing in your layout handle

<instagram_scroller> //here the layout handle is not correct, it should be like something like <instagram_scroller_index>
    <reference name="head">
        <action method="addItem"><type>skin_js</type><name>js/instashow/jquery.instashow.packaged.js</name></action>
    </reference>
    <reference name="footer">
        <block type="core/template" name="instascroller_script" template="instascroller/script.phtml"/>
    </reference>
</instagram_scroller>

The layout handle is constructed like this: <routerName_controllerName_actionName>

And use <?php echo $this->getBlockHtml('instascroller_script'); ?>

  1. Your are missing in your layout handle

    <instagram_scroller> //here the layout handle is not correct, it should be like something like <instagram_scroller_index> skin_jsjs/instashow/jquery.instashow.packaged.js </instagram_scroller>

  2. The layout handle is constructed like this: <routerName_controllerName_actionName>

  3. You are also missing in template path, you put it in: app/design/frontend/company/theme/template/instascroller/script.phtml instead app/design/frontend/company/theme/instascroller/script.phtml

  4. You put a JS file in : skin/frontend/company/theme/js/instashow/jquery.instashow.packaged.js

  5. And use <?php echo $this->getBlockHtml('instascroller_script'); ?>

Your are missing in your layout handle

<instagram_scroller> //here the layout handle is not correct, it should be like something like <instagram_scroller_index>
    <reference name="head">
        <action method="addItem"><type>skin_js</type><name>js/instashow/jquery.instashow.packaged.js</name></action>
    </reference>
    <reference name="footer">
        <block type="core/template" name="instascroller_script" template="instascroller/script.phtml"/>
    </reference>
</instagram_scroller>

The layout handle is constructed like this: <routerName_controllerName_actionName>

And use <?php echo $this->getBlockHtml('instascroller_script'); ?>

  1. Your are missing in your layout handle

    <instagram_scroller> //here the layout handle is not correct, it should be like something like <instagram_scroller_index> skin_jsjs/instashow/jquery.instashow.packaged.js </instagram_scroller>

  2. The layout handle is constructed like this: <routerName_controllerName_actionName>

  3. You are also missing in template path, you put it in: app/design/frontend/company/theme/template/instascroller/script.phtml instead app/design/frontend/company/theme/instascroller/script.phtml

  4. You put a JS file in : skin/frontend/company/theme/js/instashow/jquery.instashow.packaged.js

  5. And use <?php echo $this->getBlockHtml('instascroller_script'); ?>

Source Link
PЯINCƎ
  • 11.7k
  • 3
  • 26
  • 82

Your are missing in your layout handle

<instagram_scroller> //here the layout handle is not correct, it should be like something like <instagram_scroller_index>
    <reference name="head">
        <action method="addItem"><type>skin_js</type><name>js/instashow/jquery.instashow.packaged.js</name></action>
    </reference>
    <reference name="footer">
        <block type="core/template" name="instascroller_script" template="instascroller/script.phtml"/>
    </reference>
</instagram_scroller>

The layout handle is constructed like this: <routerName_controllerName_actionName>

And use <?php echo $this->getBlockHtml('instascroller_script'); ?>