请教在文章列表页list.htm模板文件,怎样获取文章的内容,就是message字段

bluemaple2020-6-28 209

list.htm模板文件,其实是thread_list_inc.htm

想截取message120个字作为摘要

刚找到了,不知道对不对,大神指导一下:

<?php $_data = data_read_cache($_thread['tid']);echo xn_html_safe(xn_substr(filter_all_html($_data['message']), 0, 120));?>

最新回复(2)
  • well2020-6-28
    2
    有自动摘要功能
  • bluemaple2020-6-28
    3
    well 有自动摘要功能
    我的意思是列表页调用~~不是你说的自动截取。完全两码事。感谢大佬
返回
发新帖