在没有Web界面的情况下切换Drupal中的主题 [英] Switching themes in Drupal without the web interface

查看:126
本文介绍了在没有Web界面的情况下切换Drupal中的主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习PHP和创建主题。

I'm in the process of learning php and creating themes.

不幸的是,当我正在编辑我目前在drupal使用的主题时,我做了一个主题中的错误,使得没有任何东西出现,即使我要打drupal / index.php。我想把破碎的drupal主题改成一个工作,但是我无法这样做,因为我甚至不能看到管理部分。

Unfortunately, while I was editing a theme that i was currently using in drupal, I made a mistake in the theme such that nothing shows up anymore, even if i were to hit drupal/index.php. I want to change my broken drupal theme to a working one but i'm unable to do so because I can't even view the administration section.

推荐答案

如何通过数据库重置主题 页面在Drupal.org上有直接从SQL提示符更改主题的说明。

The How To reset your theme via the database page on Drupal.org has instructions for changing your theme directly from the SQL prompt.

目前还不清楚这是否能在最新版本的Drupal中运行,所以在尝试此之前备份您的数据库。

It's not immediately clear whether this will work in the most recent version of Drupal, so back up your database before attempting this.

这篇关于在没有Web界面的情况下切换Drupal中的主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆