2
我想構建一個Drupal演示網站,我可以創建幾個自定義主題並在網站的單獨頁面上顯示每個主題。訪問可以通過鏈接或菜單項。 「越簡單」的解決方案越好。需要爲網站上的每個頁面分開「完整」Drupal主題
我想構建一個Drupal演示網站,我可以創建幾個自定義主題並在網站的單獨頁面上顯示每個主題。訪問可以通過鏈接或菜單項。 「越簡單」的解決方案越好。需要爲網站上的每個頁面分開「完整」Drupal主題
創建一個執行PHP代碼的自定義塊。以下代碼段應顯示$custom_theme
中主題集中的當前頁面。
global $custom_theme, $theme;
// If $theme is set, init_theme() will not initialize the custom theme.
unset($theme);
// Set the theme you want to use.
$custom_theme = "garland";
init_theme();
還有一個模塊,允許您更改基於某些規則所使用的主題(例如,內容類型被顯示,當前查看的頁面的URL等):該項目頁面http://drupal.org/project/themekey 。