How Load a Theme For Path

痴心易碎 提交于 2019-12-11 08:34:37

问题


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 ?


回答1:


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:



来源:https://stackoverflow.com/questions/20472244/how-load-a-theme-for-path

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!