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.

  • 相关阅读:
    php hash_hmac HMAC_SHA1 加密
    文件上传最好用绝对路径
    composer 安装插件
    php 账单生成
    php 求当前日期到下一年的实际天数
    php 求两个日期之间相差的天数
    PHP闭包 function() use()
    php 验证参数为0 但不为空
    php 原生mysqli
    前端框架选择
  • 原文地址:https://www.cnblogs.com/davidhhuan/p/1810260.html
Copyright © 2011-2022 走看看