手动启用 drupal 主题(要修改哪个文件)
好吧,假设我是 drupal 的大新手,并且我想加载一个主题(实际上应该启用并显示 - 目前没有)。而且我无权访问安装的管理部分(旧站点等......不要问为什么)。
寻找某人指定我要更改的文件以使该主题正常工作。 谢谢
(我们也可以谈论“手动”清除缓存......有时讨厌那些全部在管理中的东西,但是好吧......)
Ok, let's say i'm a big newby on drupal, and that i want to load a theme (which actually should be enabled, and displaying - currently not). And that i don't have access to the admin part of the install (old site, etc… don't ask why).
Looking for someone to specify me the files to change in order to make this theme work.
Thanks
(We could talk about clearing the cache "manually" too… hate sometimes those all-in-the-admin stuffs, but well…)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要“手动”启用主题,您需要访问数据库中的
system
表,并将type< 记录的
status
列设置为 1 “主题”的 /code> 和与您要启用的主题匹配的name
。手动刷新缓存就像对名称以
cache
开头的所有表(例如cache、cache_block、cache_content 等)运行DELETE FROM table
一样简单。您想要查找的内容都不位于文件中,几乎所有 Drupal 的配置都保存在数据库中(settings.php 中的配置除外)。
To enable a theme 'manually' you'll need to visit the
system
table in your database and set thestatus
column to 1 for the record with atype
of 'theme' and aname
matching the theme you want to enable.Manually flushing caches is as simple as running a
DELETE FROM table
for all tables whose name begins withcache
(e.g. cache, cache_block, cache_content, etc.).None of what you're trying to find is located in files, almost all of Drupal's config is held in the database (those in settings.php excluded).