我有一个有联署材料的模块,我想在行政与前端两侧都使用。我目前在前端的皮皮夹上有我的联署材料。
skin/frontend/default/default/module/js/myfile.js
如果我需要同时在前端和行政部门使用这个联署材料, 这是最好的地方吗? 还是我应该把这个放到联署材料的根文件夹里?
当我试图在布局文件中添加一个 skin_js 项时,管理员没有在正确的路径上拉动 。
这是我在管理员和前端文件上都输入的条目。 有更好的方法吗? 还是我缺少的东西?
<action method="addItem"><type>skin_js</type><name>module/js/myfile.js</name></action>
<% 1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
http://www.site.com/skin/adminhtml/default/default/module/js/myfiles.js
<% 1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
http://www.site.com/skin/frontend/default/default/module/js/myfiles.js
。