doue2666 2014-01-25 04:42
浏览 27

编辑Drupal页脚

I'm now maintaining a Drupal site that was built by someone else. I'm a total Drupal newb but have some coding experience. The site was last updated in 2011 and I have spent much of this evening, with some success, trying to edit the footer where it says "last update 2011" to "2014". I found a post here which directed me to some tpl.php files in the site's theme folder. There I found the hard-coded "2011" string in several different places (3 different files) and updated it.

Now on the website the new date string appears on every page except on the home page when I am not logged in as a user. That is, when I log in to edit the site in the normal way, then the home page displays my new "2014" string. When I log out and view the home page anonymously, then we're back to "2011". All other pages are good.

Can someone suggest a solution to this? Thanks in advance, David

  • 写回答

2条回答 默认 最新

  • dpsu84620 2014-01-25 04:50
    关注

    You can use "Footer Message" module for Drupal 7. Try it, I hope it will help: https://drupal.org/project/footer_message

    It's said that "A configurable footer message, editable from the site-information form and displayed as a block, as well as a theme variable available in page.tpl.php and hook_preprocess_page()."

    In Drupal 6 it should be a block responsible for footer. Also if you are logged in as administrator see this menu : Site Configuration > Site Information > Footer Message. You should be able to edit footer from there.

    评论

报告相同问题?

悬赏问题

  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大