如何为路径加载主题 [英] How Load a Theme For Path

查看:10
本文介绍了如何为路径加载主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果路径/gallery 加载新主题示例Bartik",我喜欢上下文其他页面加载Omega"主题

I like Context if Path /gallery Load A New Theme example "Bartik" Other page load "Omega" Theme

我安装了上下文条件主题"模块但它不起作用

I Install the "Context Condition Theme" Modules But it does not working

你有什么建议?

推荐答案

使用可以使用 ThemeKey 模块.

Use can use ThemeKey module.

启用 ThemeKey 模块及其所需的子模块,然后进入 admin/config/user-interface/themekey 的配置页面.在这里你会看到切换主题的选项.

Enable ThemeKey module and its required sub modules, then go to the config page at admin/config/user-interface/themekey. Here you will see may options for switching the theme.

根据您的需要,有一个选项 path:node_alias 所以选择这个选项,并像你说的那样设置你想要的值 /gallery 然后选择你的主题想在这个网址启用.

As you required there is an option path:node_alias so select this option and also set the value as you want like you say /gallery and then select the theme you want to enable at this url.

对于通配符路径,请根据需要使用此设置 web/*:

For wildcard path use this setting as you required web/*:

Property: drupal:path
Operator: =
Value: %wildcard

Property: drupal:path:wildcard
Wildcard: wildcard
Operator: ~
Value: /^web/.*

喜欢这个图片参考:

这篇关于如何为路径加载主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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