迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發(fā)框架,基于MIT開源許可協(xié)議發(fā)布,免費且不限制商業(yè)使用,是免費開源的產(chǎn)品,以萬端互聯(lián)為設計理念,支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
聯(lián)系官方銷售客服
1835022288
028-61286886
poscms3 的 tag 跟 catid 沒關系了嗎 ?
原來使用的finecms 時 可以找到指定某個分類下面的 tag 標簽
{list table=tag catid=$catid num=5 order=listorder_desc}
{$t['name']}
{/list}
請問使用poscms3如何實現(xiàn)上述finecms代碼的邏輯??
和catid沒有關系
回復迅睿框架創(chuàng)始人 我該如何改寫TAG插件
在文件 diy/poscms/model/Content.php 看到 以下的方法,請問我如何在不影響升級的前提下 做修改? 請指點思路即可 謝謝
\Poscms\\Poscms\
diy/poscms/model/Content.php
// 更新至tag表
public function update_tag($keyword) {
if (dr_is_app('tag') && $this->ci->get_cache('app-tag', 'setting', 'auto_tag')) {
\Poscms\Service::M('db', 'tag')->save($this->mdir, $keyword);
}
if (dr_is_app('tags') && $this->ci->get_cache('app-tags', 'setting', 'auto_tag')) {
\Poscms\Service::M('db', 'tags')->save($keyword);
和catid沒有關系
回復迅睿框架創(chuàng)始人 我該如何改寫TAG插件
在文件 diy/poscms/model/Content.php 看到 以下的方法,請問我如何在不影響升級的前提下 做修改? 請指點思路即可 謝謝
diy/poscms/model/Content.php
// 更新至tag表
public function update_tag($keyword) {
if (dr_is_app('tag') && $this->ci->get_cache('app-tag', 'setting', 'auto_tag')) {
\Poscms\Service::M('db', 'tag')->save($this->mdir, $keyword);
}
if (dr_is_app('tags') && $this->ci->get_cache('app-tags', 'setting', 'auto_tag')) {
\Poscms\Service::M('db', 'tags')->save($keyword);
}
}