张文保的博客
保哥笔记

技术性SEO实战经验分享博客

张文保微信

Typecho将分类添加到导航菜单中

Typecho默认是将单页面链接显示在导航菜单中,如何将分类添加到导航菜单中?将以下代码加在header.php即可:<?php $this->widget('Widget_Metas_Category_List')->to($category); ?> <?php while($category->next()): ?> <li<?p……

Typecho分类 Typecho菜单

ASPCMS网站通用标签

1、ASPCMS基本标签    {aspcms:sitepath} 网站终极目录(可放在二级目录,其它语言则在三级目录)    {aspcms:languagepath} 语言目录    {aspcms:siteurl} 网站地址    {aspcms:sitelogo} LOGO地址    {aspcms:sitetitle} 网站标题    {aspcms:additiontitle} 网……

ASPCMS标签 ASPCMS模板 ASPCMS菜单

ASPCMS调用指定内容列表

1、ASPCMS调用指定内容列表所有页面都可调用(无分页)    {aspcms:content sort=2 num=4 order=order star=1}    [content:id]编号    [content:i]计数    [content:title]标题    [content:content]内容    [content:link]链接    [content:isout……

ASPCMS标签

ASPCMS IF标签的使用

1、满足条件则显示    {if:条件语句}    显示内容    {end if}2、满足条件则显示内容1,否则显示内容2    {if:条件语句}    显示内容1    {else}    显示内容2    {end if}实例:1,给满足条件的添加不同的样式    {aspcms:content}    [content:title]    {/aspcms:content}嵌套   ……

ASPCMS标签

ASPCMS会员资料调用标签

1、ASPCMS会员相关资料页面标签    [user:userid] 用户ID号    [user:username] 用户名    [user:UserStatus] 账号状态    [user:RegTime] 注册时间    [user:LastLoginIP] 最后登录IP    [user:LastLoginTime] 最后登录时间    [user:LoginCount] 登录次……

ASPCMS标签

ASPCMS订单页面调用标签

1、ASPCMS订单完成页面标签{aspcms:order.no} 订单号码 {aspcms:order.date} 订单日期 {aspcms:order.username} 用户名 {aspcms:order.state} 订单状态 {aspcms:order.total}订单总金额 {aspcms:order.count} 商品总数量 {aspcms:order.nicename}客户姓名……

ASPCMS标签

Typecho首页和分类页调用文章内容截取

typecho博客首页和分类页面默认显示的是文章的全部内容,这样会让首页篇幅太长,从而一页显示的文章过少,下面是截取文章前面部分内容的方法: 在index.php文件找到如下代码<?php $this->content('阅读剩余部分...'); ?>替换为<?php $this->excerpt(); ?>如果要自己设定摘要的输出字数,可以修改代码为<……

Typecho标签

ASPCMS调用TAG标签内容

1、标签相关内容调用和内容调用一样,只需要加一个tag属性    {aspcms:content sort=2 num=4 order=order tag=aspcms,asp,php star=1}    [content:id]编号    [content:i]计数    [content:title]标题    [content:content]内容    [content:link]链……

ASPCMS标签

织梦DedeCMS批量移动栏目作为子栏目的SQL语句

织梦dedecms有时栏目太多,一个一个在栏目管理里手工移动子栏目到另一个栏目里,会太麻烦,下面这个织梦子栏目批量移动的MySQL数据库操作命令将会使你节省大量的时间:Update `dede_arctype` set reid='目标父栏目ID' where id in(2,3,4,5) 将上面SQL语句中的“目标父栏目ID”改为你要批量放入的栏目的ID号,括号里面的数字是你要移动……

织梦SQL dede_arctype