产品模型内容页标签
1、TKD标签
页面的title
,keywords
,description
标签如下:
标签 | 作用 | 示范 |
---|
{$seotitle} | 页面标题 | <title>{$seotitle}</title> |
{$seokey} | 页面关键字 | <meta name="keywords" content="{$seokey}"> |
{$seodesc} | 页面描述 | <meta name="description" content="{$seodesc}"> |
2、栏目名称
{$catename}
3、面包屑导航:
{foreach $position as $rs}
<a href="{$rs['url']}" title="{$rs['name']}">{$rs['name']}</a>
{/foreach}
4、标题:
{$title}
5、日期
{date('Y-m-d',$createdate)}
6、人气
{$hits}
6、价格
{$price}
7、简介
{$intro}
8、内容
{$content}
9、组图标签
{php $piclist=jsdecode($piclist,1)}
{if count($piclist)>0}
{php $big=reset($piclist)}
<div class="big_pic"><a href="{$big['image']}" class="ui-lightbox" data-hide="true"><img src="{$big['image']}" alt="{$big['desc']}" border="0" ></a></div>
<div class="thumb_pic">
<ul>
{php $step=0}
{foreach $piclist as $index=>$val}
{php $step++}
<li{if $step==1} class="active"{/if}><img src="{thumb($val['image'],60,60)}" data-url="{$val['image']}" alt="{$val['desc']}" width="56" height="56"></li>
{/foreach}
</ul>
</div>
{/if}
10、用户自定义字段循环标签
{if is_array($field)}
<ul class="attribute">
{foreach $field as $key=>$rs}
{if !isempty($rs)}
<li><em>{$key}:</em>{$rs}</li>
{/if}
{/foreach}
</ul>
{/if}
11、内容扩展循环标签
{if count($edata)>0}
<ul class="extend">
{foreach $edata as $key=>$rs}
<li><em>{$rs['field_title']}:</em>{if isset($extend[$rs['field_key']])}{$extend[$rs['field_key']]}{/if}</li>
{/foreach}
</ul>
{/if}
12、Tags标签
{if count($tagslist)>0}
<div class="tags">
<i class="ui-icon-tags"></i> 标签:
{foreach $tagslist as $rs}
<a href="{$rs['url']}" title="{$rs['name']}" target="_blank" class="ui-btn ui-btn-sm">{$rs['name']}</a>
{/foreach}
</div>