/*
$(\submitHandler : function(form) { $(form).ajaxSubmit( { \if(data.success) { alert(\评论成功\
location.href=location.href; } else {
alert(\评论失败\} },
\}); } }); */
Cms.comment(function(data) { if(data.status==0) { alert(\评论成功\
location.href=location.href; } else if(data.status==1) { alert(\验证码错误\
$(\} else if(data.status==2) { alert(\内容不存在\
$(\} else if(data.status==3) { alert(\评论关闭\
$(\} else if(data.status==4) { alert(\需要登录评论\
$(\} else if(data.status==100) { alert(\内容不存在\
$(\} else if(data.status==101) { alert(\评论不能为空\
$(\} else {
alert(\评论失败\
$(\} });
});
[#elseif channel.commentControl==1 && !user??] [#--登录评论,且未登录--]
[#else]
[#--不允许评论--] [/#if]
8.3comment_list.html
comment_list.html
Cms.commentList(\5}); });
八 留言管理
新建一个留言栏目,在外部链接中写入以下地址:
http://cms.hznu.edu.cn/bluecms/guestbook.jspx?siteId=34860 注意修改成对应的cms的地址和站点id 留言板代码位于special文件夹中
8.1首页的留言
[@cms_guestbook_list count='10' recommend='1' checked='1'] [#list tag_list as m]
[${m.ctg.name!}]${m.titleHtml!} ${m.contentHtml!}
[/@cms_guestbook_list]
recommend='1' 控制在首页上显示在留言管理中勾选上推荐的留言 checked='1'控制在首页上显示在留言管理中勾选上审核的留言 8.2留言板首页
留言板首页必须加上这两个js