易优CMS问答列表标签-模板代码使用说明
{eyou:asklist id='field' row='20'} <li> <div class='date'> <span class='dateline' title='天'>{$field.add_time|MyDate='d',###}</span> <em title='年-月'>{$field.add_time|MyDate='Y-m',###}</em> </div> <div class='txt'> <a href='{$field.ask_url}' title='{$field.ask_title}'> <!-- 是否显示推荐字样 --> {eyou:eq name='$field.is_recom' value='1'} <span style='color: red;'>[推荐]</span> {/eyou:eq} <!-- 问答标题 --> {$field.ask_title|html_msubstr=###, 0, 30, true} </a> <!-- 问答内容 --> {$field.content|html_msubstr=###, 0, 35, true} </div> <div class='txt'> <span>查看人数:{$field.click}</span> <span>回复人数:{$field.replies}</span> <span style='color: red;' title='所属分类'><a href='{$field.type_url}'>{$field.type_name}</a></span> <span title='完整发布时间显示'>{$field.add_time|MyDate='Y-m-d H:i:s',###}</span> </div> </li> {/eyou:asklist}