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

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

问题描述

我喜欢上下文如果路径/画廊加载一个新的主题示例Bartik其他页面加载欧米茄主题



我正在安装上下文条件主题模块但它不工作



你的建议是什么?

解决方案

使用可以使用 admin / config /用户界面/ themekey 。在这里,您将看到可以选择切换主题。



根据您的要求,有一个选项 path:node_alias so选择此选项,并根据需要设置您想要的值 / gallery ,然后选择要在此URL中启用的主题。希望这个模块解决你的问题。



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

 属性:drupal:path 
运算符:=
值:%通配符

属性:drupal:路径:通配符
通配符:通配符
运算符:〜
值:/^web/.*

喜欢这张图片参考:




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

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

What's your recommendation ?

解决方案

Use can use ThemeKey module.

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.

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. Hope this module solve you problem.

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/.*

Like this image reference:

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

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