zoukankan      html  css  js  c++  java
  • [Drupal] 404 page didn't render other blocks.

    after I modified the 404 page redirection in admin/settings/error-reporting , when I view a page which doesn't exist, that will correctly redirect to the node what I set, but some blocks disappear.

    The reason is that On 404 Not Found error pages, Drupal will skip rendering of several pieces of your website for performance reasons.

    Luckly, I found the result that some one have build a module to resolve this problem, here is the details about the module.

    Name :404 Blocks

    Link : http://drupal.org/project/blocks404

    Description :

    On 404 Not Found error pages, Drupal will skip rendering of several pieces of your website for performance reasons. Some of these include:

    1. The "Left" and "Right" regions of your theme.
    2. The "Primary links" block and any other menu links block.*
    3. The Primary links and Secondary links of your theme.*

    * Unless you have configured a "Default 404 (not found) page" on admin/settings/error-reporting.

    But many websites find those items invaluable. Especially on 404 pages, when they want to show lost users how to get to real pages.

    So this module simply revives those features on 404 pages. Simply install and enable the module. No configuration needed.

  • 相关阅读:
    时空权衡之计数排序
    何时发生隐式类型转换
    常量指针与指针常量的区别
    虚函数有关面试题
    C++中数组定义及初始化
    InputStream类的available()方法
    FORK()函数
    面向对象三大基本特性,五大基本原则
    SpringMVC工作原理
    java文件的上传
  • 原文地址:https://www.cnblogs.com/davidhhuan/p/1810260.html
Copyright © 2011-2022 走看看