小祈用了不到三天做了一个企业站,第二次做了速度有点慢,问题也有点多,总结出现的问题 制作豪奇集团优化站使用phpcms制作遇到的问题
1.相关文章调用错误,phpcms调用的是关键词里相近的词,而不是标题相同,这一点搞错了好久
<div class="relateproduct relate"><h4>相关产品:</h4>
<div class="content"> <ul id="relate_p" class="product_list clearfix">
{pc:content action="relation" relation="$relation" catid="$catid" num="5" keywords="$rs[keywords]"}
{loop $data $r}
<li> <a href="{$r[url]}" title="{$r[title]}" class="img">
<img src="{$r[thumb]}" alt="{$r[title]}" width="120" height="96"> </a>
<h3><a href="{$r[url]}" title="{$r[title]}">{$r[title]}</a></h3> </li>
{/loop} {/pc}