技术文章

多行业覆盖、100+精品模版、即选即用、1小时火速上线

点击咨询

Destoon在列表页调用文章内容的方法

对于destoon的列表里需要循环调用文章内容的朋友,可以使用以下办法

include/global.func.php 加入以下函数

 

  • function content($itemid) {
  •         global $db;
  •         $row = $db->get_one("SELECt * FROM {$db->pre}sell_data_5 WHERe itemid=$itemid");
  •         return $row['content'];
  • }
在循环标签中使用

{content($t[itemid])}
产地秀,助你成就大平台

便捷高效,快速部署