找回密码
 免费注册

[讨论交流] 怎么搜索站内的网址关键词,描述

[复制链接]
a18030369132 发表于 2022-12-31 00:49:39 | 显示全部楼层 |阅读模式
怎么搜索站内的网址关键词,描述
回复

使用道具 举报

 楼主| a18030369132 发表于 2022-12-31 00:50:26 | 显示全部楼层
现在只能搜索网页还有导航名称,我想搜索网页的关键次,描述,代码要怎么修改
回复

使用道具 举报

 楼主| a18030369132 发表于 2022-12-31 00:51:12 | 显示全部楼层
316770z2e1.51vip.biz  这是我的网站
回复

使用道具 举报

admin 发表于 2022-12-31 00:58:17 | 显示全部楼层
标签TAG是存在dc_term表的,不能同时搜索两个表

如果是搜索seo关键字则修改 Search.php 打开就能看到源码,加上一个 and info_keywords like "%'.$info['searchText'].'%"

  1. 'whereOr'    => [
  2.                 'info_module="daohang" and info_controll="detail" and info_name like "%'.$info['searchText'].'%"',
  3.                 'info_module="daohang" and info_controll="detail" and info_keywords like "%'.$info['searchText'].'%"'
  4.             ],
复制代码

daohang-search-plus.png
回复

使用道具 举报

 楼主| a18030369132 发表于 2022-12-31 13:22:24 | 显示全部楼层
admin 发表于 2022-12-31 00:58
标签TAG是存在dc_term表的,不能同时搜索两个表

如果是搜索seo关键字则修改 Search.php 打开就能看到源码 ...

我试一试
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

QQ|Archiver|手机版|小黑屋|信息共享网

GMT+8, 2024-5-14 05:26 , Processed in 0.073471 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表