标题:
{$vo.post_title}
描述:
{$vo.post_excerpt}
附件图片地址:
{:cmf_get_image_url($vo.more.thumbnail)}
附件相册地址:
{:cmf_get_image_url($vo.more.photos)}
置顶文章调用:
$where=['post.is_top'=>1];
推荐文章调用:
$where=['post.is_recommend'=>1];
包含文件:
<include file="public@nav"/>
点击:
{$vo.post_hits}
友情链接:
<links>
<li><a href="{$vo.url|default=''}" target="{$vo.target|default='_blank'}">{$vo.name|default=''}</a></li>
</links>
模板路径:
__TMPL__
静态资源路径:
__TMPL__/public/assets/
当前位置:
<a href="{:url('/')}" >首页</a>
<portal:breadcrumb cid="category.id" self="true"> > <a href="{:url('portal/List/index',['id'=>$vo['id']])}" >{$vo.name}</a>
</portal:breadcrumb>
文章调用:
<portal:articles limit="4" order="post.published_time DESC" categoryIds="1">
<a href="{:url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo.category_id))}">
{$vo.post_title}
</a>
{:cmf_get_image_url($vo.more.thumbnail)}
{:date('Y-m-d', $vo['published_time'])}
</portal:articles>
首页相关标签:
标题:{$site_info.site_name|default=''} ,关键词:{$site_info.site_seo_keywords|default=''},描述:{$site_info.site_seo_description|default=''}
列表相关标签:
标题:{$site_info.site_name|default=''} ,关键词:{$site_info.site_seo_keywords|default=''},描述:{$site_info.site_seo_description|default=''}
文章相关标签:
标题:
<title>{$article.post_title}</title>
关键词:
<meta name="keywords" content="{$site_info.site_seo_keywords|default=''}"/>
描述:
<meta name="description" content="{$site_info.site_seo_description|default=''}">
时间:
{:date('Y-m-d H:i',$article.published_time)}
作者:
{$article.user.user_nickname}
点击量:
{$article.post_hits}
内容:
{$article.post_content}
上一篇:< a href=" {:url('portal/Article/index',array('id'=>$prev_article['id'],'cid'=>$category['id']))}">{$prev_article.post_title}</ a>
下一篇:< a href="{:url('portal/Article/index',array('id'=>$next_article['id'],'cid'=>$category['id']))}">{$next_article.post_title}</ a>