0
드루팔 (Drupal 7)에 패널 페이지 템플리트를 추가하려하지만 픽업되지 않습니다.드루팔 (Drupal 7 - 패널 페이지의 하위 영역에 템플릿 파일 위치?
function mytheme_preprocess_page(&$variables) {
// if this is a panel page, add template suggestions
if($panel_page = page_manager_get_current_page()) {
// add a generic suggestion for all panel pages
$variables['theme_hook_suggestions'][] = 'page__panel';
// add the panel page machine name to the template suggestions
$variables['theme_hook_suggestions'][] = 'page__' . $panel_page['name'];
//add a body class for good measure
$body_classes[] = 'page-panel';
}
}
을 그리고 나는 페이지에 놓여있다 - 내 subtheme의 템플릿 폴더에 panel.tpl.php을 :
내 subtheme의 template.php이 추가되었습니다.
(전체 경로 : /profiles/mytheme/themes/custom/mytheme/templates/page--panel.tpl.php)
문제는 무엇을 할 수 있을까?