切换主题在Drupal没有web界面 [英] Switching themes in Drupal without the web interface

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

问题描述

我正在学习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.

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

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