문제

Suppose that website is: http://www.mywebsite.com width Drupal Garland theme on all pages.

How to enable another theme and set it as default on a page like http://www.mywebsite.com/video ?

Blocks can be added on specific pages, but can templates done the same?

도움이 되었습니까?

해결책

Take a look at the ThemeKey module.

From the module information:

ThemeKey is meant to be a generic theme switching module. It allows you to switch the theme for different paths and based on object properties (e.g. node field values). It can also be easily extended to support additional paths or properties as exposed by other modules.

다른 팁

You could use the Page Theme module to achieve exactly that : The Page Theme module is a simple and easy module to use which allows to use different themes than the site default on specific pages.

Features :

Assign a theme to a single page or list of pages. (Set a page as a Drupal path) Allow to use '*' character as a wildcard in Drupal paths. Allow to arrange themes. (If pages are several defined, the first theme in the list will be used) Allow to enable/disable a theme. Drupal novice friendly.

as will as you can use : Sections which has most of the same features as Page Theme, but adds a role based selection and a "php snippet" area to choose the theme.

but if you want to use different themes than the site default on content creating, editing, and viewing pages you can use Content Theme which allows to use different themes than the site default on content creating, editing, and viewing pages.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top