用于确定您是否正在编辑节点的 Drupal 主题代码
有谁知道检查你是否处于编辑模式的php代码?我想编辑我的主题在编辑模式下的外观,因此需要确定我是否是这样。
Does anyone know the php code to check if you are in edit mode? I want to edit how my theme looks when in edit mode so need to work out if I am or not.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以检查网址参数,如此处所示。
You can check url arguments as shown here.
您还可以创建一个页面模板来处理此问题。从 http://drupal.org/node/190815 检查:
You can also make a page template to handle this. Check this from http://drupal.org/node/190815: