分享好友 教程资讯首页 频道列表

DESTOON6.0任意页面显示分类描述

2023-10-06 20:12460

描述有利于收录,我们今天就来加上这个功能,

在自定义函数文件 中加入一下代码

找到 api/extend.func.php

加入 :

//任意页面显示分类描述
function cat_description($catid) {
global $db;
$catid = intval($catid);
$seo_description = '';
    $r = $db->get_one("SELECt seo_description FROM {$db->pre}category WHERe catid=$catid");
    $seo_description = $r['seo_description'];
return $seo_description;
}



调用: 列表

{cat_description($t[catid])}


内容页

{cat_description($catid)}


反对 0
举报 0
收藏 0
打赏 0
评论 0
DESTOON7.0任意模块根据itemid调取content内容
在自定义函数文件中 api\extend.func.php中加入以下代码function getContentbyId($moduleid,$itemid,$split=1){global $db;$content_table = content_table($mod

0评论2023-10-08112

DESTOON任意页面获取会员商铺参数logo信息
有些地方需要调取公司商铺设置参数,但是destoon系统把这些参数没有入库,导致调取很不灵活所以只要我们自己动手写点函数了老规矩,在自定义函数文件中 api/exte

0评论2023-10-08114

destoon获取任意栏目名称的方法
api/extend.func.php 加入以下函数function cat_name($catid) {global $db;$catid = intval($catid);$catname = '';$r = $db-get_one(SELECt catname FR

0评论2023-10-0638

DESTOON调用公司设置任意字段信息的方案
1、这是商铺的设置参数把以下函数加入到api/extend.func.php 中//获取公司setting表里的值functionxh_com_setting($userid,$key='',$cache=''){

0评论2023-10-0644

loading