【发布时间】:2014-01-28 23:38:27
【问题描述】:
当我单击标题中的链接时,如何将子 html 块添加为弹出窗口?在此链接中,我想让“我的帐户”有一个类似于悬停在心形和包图标上的下拉菜单。
当我尝试创建一个新的 .xml 文件时,我使用了:
<layout>
<default>
<reference name="head">
<action method="addCss"><stylesheet>css/popup.css</stylesheet></action>
<action method="addJs"><script>dojo.xd.js</script></action>
</reference>
<reference name="header">
<block type="myaccountpopup" name="myaccountpopup" template="myaccountpopup.phtml" />
</reference
</default>
</layout>
我还在链接后面加了<?php echo $this->getChildHtml('myaccountpopup') ?>也没用。
问题是
- 如何确定块类型?
- 什么是让它工作的正确方法?
【问题讨论】:
标签: php jquery html css magento