让PJblog全静态模式下侧边显示自定义模块

c_skins.asp中找到

在下面加

在control/Action.asp中找到

Case "doIndex":
conn.Execute("update blog_module set IndexOnly=true where id="&selectID(i))
Case "cancelIndex":
conn.Execute("update blog_module set IndexOnly=false where id="&selectID(i))

在下面加
Case "doSystem":
conn.Execute("update blog_module set IsSystem=true where id="&selectID(i))
Case "cancelSystem":
conn.Execute("update blog_module set IsSystem=false where id="&selectID(i))

原理是将那些自定义的模块转化成系统模块就可以在静态的侧边显示了,因为静态下只显示系统模块.

点赞 (0)

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

Captcha Code