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

查看:21
本文介绍了在没有 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天全站免登陆