zoukankan      html  css  js  c++  java
  • 帝国常用

    1.获取列表页面的当前地址

    ==实现动态列表页面获取当前地址==
    <?php
    $cr['classid']=$GLOBALS[navclassid];
    $classurl=sys_ReturnBqClassname($cr,9);
    echo $classurl;
    ?>

    2.上一篇,下一篇:(empty函数写错了)

    http://www.jb51.net/cms/254746.html

    3.从内容页返回列表页:

    栏目名:[!--class.name--]
    栏目链接:[!--news.url--]e/public/ClassUrl/?classid=[!--self.classid--]

    4.当前栏目id:$GLOBALS[navclassid]

    当前信息id:$navinfor['id']

    5.帝国cms栏目自动跳转到指定信息页面的实现方法:

    列表模板这样写:

    [e:loop={'selfinfo',1,2,0}]
    <script>
    location.href="<?=$bqsr[titleurl]?>";
    </script>
    [/e:loop]

    然后再设置一条信息比如公司简介为推荐,因为灵动标签调用的是第一条推荐信息的地址。

    6.搜索页支持php或灵动标签

    http://www.zhuxianfei.com/cms/phome/364.html

    7.开启全站搜索

    http://bbs.phome.net/showthread-13-117023-0.html

    8.留言动态页面支持标签(主要修改完成后一定要重新提交模板)

    http://jingyan.baidu.com/article/b24f6c820dfa9e86bee5da44.html

    http://bbs.phome.net/showthread-31-298319-0.html

    如果遇到“您来自的链接不存在”的问题,可能是因为表单缺少了变量,把那些隐藏的变量加上去就可以了,如

    <input name="enews" type="hidden" id="enews" value="AddGbook" />
    <input type="hidden" name="bid" value=1>
    
    
    
  • 相关阅读:
    在 Spring 中使用 Quartz
    Quartz 快速进阶
    任务调度概述
    Spring Boot 2.x 整合 Mybatis 3.x
    pwd函数实现
    07-图4 哈利·波特的考试 (25 分)
    06-图3 六度空间 (30 分)
    linux中的目录
    Linux中的文件
    06-图2 Saving James Bond
  • 原文地址:https://www.cnblogs.com/lvchenfeng/p/6193377.html
Copyright © 2011-2022 走看看