模块SEO优化中{分类名称}分隔符去掉及只调用下级分类方法
2014-08-05 15:58
246 查看
if($catid) { if($CAT['parentid']) { $seo_catname = ''; $tmp = strip_tags(cat_pos($CAT, 'DESTOON')); $tmp = explode('DESTOON', $tmp); $tmp = array_reverse($tmp); /* foreach($tmp as $k=>$v) { $seo_catname .= $v.$seo_delimiter; }*/ $seo_catname .= $tmp[0]; } else { //$seo_catname = $CAT['catname'].$seo_delimiter; $seo_catname = $CAT['catname']; } $seo_cattitle = $CAT['seo_title'] ? $CAT['seo_title'].$seo_delimiter : $seo_catname; $seo_catkeywords = $CAT['seo_keywords'] ? $CAT['seo_keywords'] : ''; $seo_catdescription = $CAT['seo_description'] ? $CAT['seo_description'] : ''; }上面文件在seo.inc.php中
相关文章推荐
- 模块SEO优化中{分类名称}分隔符去掉及只调用下级分类方法
- zencart 产品页调用当前分类的分类名称和url 方法
- 动态调用指定URL的 webservice 的指定名称的方法
- 遍历获取ASP.NET页面控件的名称及值 后台调用前台javascript方法报错:“缺少对象”的解决方法 xml与DataSet的互转换类
- C# 获取 "代码被调用的一系列方法的名称"
- ASP.NET 中DataTable调用Excel模块直接生成Excel文件的方法
- SD模块重要的函数以及调用方法
- python调用C模块的方法
- 模块间互相调用的一种方法
- dedecms如何调用分类信息的当前地区名称
- VC++公共模块被调用的实现方法
- Think php 快速调用 模块或是方法 A R
- Discuz! 7.0 模块调用脚本范例程序 - 多选下拉的缺陷以及使用方法
- AS3 通过方法名称 进行调用
- C#获得调用方法的名称和类名
- win7 注册 卸载 报错: 模块 XXX 已加载 但对DllUnregisterServer 的调用失败 处理方法
- 安装webmagik(解决首页顶部出现错误,验证管理顶部出现错误及模块名称为问号的方法!)
- 自定义字段在各个模块的调用方法
- web developer tips (83):通过反射从堆栈里获取调用的方法名称
- 映射获取调用方法的方法名称c#