【发布时间】:2013-05-23 07:19:19
【问题描述】:
在 Magento 中,我制作了属性字段。并插入 4 个链接:
http://www.first-link.com/
http://www.second-link.com/
http://www.third-link.com/
http://www.fourth-link.com/
有
<?php echo $_helper->productAttribute($_product, $_product->getLinks(), 'links') ?>
我显示这 4 个裸链接。
但我想用<a> 标记包装它们来制作这样的东西:
<a href="http://www.first-link.com/" target="_blank">Link 1 - description</a><br>
<a href="http://www.second-link.com/" target="_blank">Link 2 - description</a><br>
<a href="http://www.third-link.com/" target="_blank">Link 3 - description</a><br>
<a href="http://www.fourth-link.com/" target="_blank">Link 4 - description</a>
我在服务器上安装了 PHP 5.3。
【问题讨论】: