为什么不上传这个区块?XML和Magento

为什么不上传这个区块?XML和Magento,xml,magento,Xml,Magento,我有以下代码XML: <block type="page/html_footer" name="footer" as="footer" template="page/html/footer.phtml"> <block type="page/html_wrapper" name="bottom.container" as="bottomContainer" translate="label"> &l

我有以下代码XML:

 <block type="page/html_footer" name="footer" as="footer" template="page/html/footer.phtml">
                <block type="page/html_wrapper" name="bottom.container" as="bottomContainer" translate="label">
                    <label>Page Footer</label>
                    <action method="setElementClass"><value>bottom-container</value></action>
                </block>
                <block type="page/switch" name="store_switcher" as="store_switcher" after="*" template="page/switch/stores.phtml"/>

                <block type="page/template_links" name="footer_links" as="footer_links" template="page/template/links.phtml">
                    <action method="setTitle"><title>Quick Links</title></action>
                </block>
  /*---- here is my block---*/
                 <block type="cms/block" name="Footer Links">
                     <action method="footer_links3"><block_id>name-of-static-block</block_id></action>
                 </block>
   /*---- here is my block---*/
                <block type="page/template_links" name="footer_links2" as="footer_links2" template="page/template/links.phtml">
                    <action method="setTitle"><title>Account</title></action>
                </block>

                <block type="page/template_links" name="footer_links3" as="footer_links3" template="page/template/links.phtml">
                    <action method="setTitle"><title>ss</title></action>
                </block>
                <!-- This static block can be created and populated in admin. The footer_links cms block can be used as a starting point. -->
                <block type="cms/block" name="footer_social_links">
                    <action method="setBlockId"><block_id>footer_social_links</block_id></action>
                </block>
            </block>

页脚
底部容器
快速链接
/*----这是我的街区---*/
静态块的名称
/*----这是我的街区---*/
账户
党卫军
页脚\社交\链接
我在page.xml中添加了这段代码

CMS静态块部分,我们创建了下一个块,其中包含以下心房肌:

  • 块标题=页脚链接

  • 标识符=页脚链接3

  • 商店视图=所有商店视图

  • 您能告诉我哪里出了问题,为什么网站上什么也没有打印吗?

    编辑:

     <block type="page/html_footer" name="footer" as="footer" template="page/html/footer.phtml">
                    <block type="page/html_wrapper" name="bottom.container" as="bottomContainer" translate="label">
                        <label>Page Footer</label>
                        <action method="setElementClass"><value>bottom-container</value></action>
                    </block>
                    <block type="page/switch" name="store_switcher" as="store_switcher" after="*" template="page/switch/stores.phtml"/>
    
                    <block type="page/template_links" name="footer_links" as="footer_links" template="page/template/links.phtml">
                        <action method="setTitle"><title>Quick Links</title></action>
                    </block>
      /*---- here is my block---*/
                     <block type="cms/block" name="Footer Links">
                         <action method="footer_links3"><block_id>name-of-static-block</block_id></action>
                     </block>
       /*---- here is my block---*/
                    <block type="page/template_links" name="footer_links2" as="footer_links2" template="page/template/links.phtml">
                        <action method="setTitle"><title>Account</title></action>
                    </block>
    
                    <block type="page/template_links" name="footer_links3" as="footer_links3" template="page/template/links.phtml">
                        <action method="setTitle"><title>ss</title></action>
                    </block>
                    <!-- This static block can be created and populated in admin. The footer_links cms block can be used as a starting point. -->
                    <block type="cms/block" name="footer_social_links">
                        <action method="setBlockId"><block_id>footer_social_links</block_id></action>
                    </block>
                </block>
    
    footer.phtml代码

    <div class="footer-container">
        <div class="footer">
            <?php echo $this->getChildHtml('my_footer_links') ?>
            <?php echo $this->getChildHtml() ?>
            <address class="copyright"><?php echo $this->getCopyright() ?></address>
        </div>
    </div>
    
    
    
    xml代码:

     <block type="cms/block" name="my_footer_links">
                           <action method="setBlockId"><block_id>footer_links3</block_id></action>
                    </block>
    
    
    页脚链接3
    
    请更换:

    <block type="cms/block" name="Footer Links">
       <action method="footer_links3"><block_id>name-of-static-block</block_id></action>
    </block>
    
    
    静态块的名称
    
    与:

    
    页脚链接3
    
    您在操作方法中使用了页脚链接3,这是错误的

    之后,您需要使用$this->getChildHtml方法从footer.phtml文件调用它

    <?php echo $this->getChildHtml('my_footer_links') ?>
    
    
    

    检查后请告诉我结果。

    没有任何变化。。。仍然看不到网站上的时钟请查看我编辑的回复,并让我知道它是否有效。我现在输入了你的代码,但没有发生任何事情。。。我不明白您在编辑的问题中的意思,您仍然没有更改xml文件中的代码。请在xml文件中使用:footer_links3代替您的代码。