Перепробовал обозвать шаблон так:
maintenance-page.tpl.php
page.tpl.php
page-СВОЁ НАЗВАНИЕ.tpl.php и указать путь в меню "О САЙТЕ"
Но не пашет =\ У меня должен быть совсем другой дизайн на индексе сайта, а вот примастырить его не получается
Как это починить?)
Комментарии
исходя из кода:
<?php
/**
* Choose which template file to actually render. These are all suggested
* templates from themes and modules. Theming implementations can occur on
* multiple levels. All paths are checked to account for this.
*/
function drupal_discover_template($paths, $suggestions, $extension = '.tpl.php') {
global $theme_engine;
// Loop through all paths and suggestions in FIFO order.
$suggestions = array_reverse($suggestions);
$paths = array_reverse($paths);
foreach ($suggestions as $suggestion) {
if (!empty($suggestion)) {
foreach ($paths as $path) {
if (file_exists($file = $path .'/'. $suggestion . $extension)) {
return $file;
}
}
}
}
}
?>
<?php
/**
* Process variables for node.tpl.php
*
* Most themes utilize their own copy of node.tpl.php. The default is located
* inside "modules/node/node.tpl.php". Look in there for the full list of
* variables.
*
* The $variables array contains the following arguments:
* - $node
* - $teaser
* - $page
*
* see node.tpl.php
*/
function template_preprocess_node(&$variables) {
$node = $variables['node'];
...
// Clean up name so there are no underscores.
$variables['template_files'][] = 'node-'. $node->type;
}
?>
надо либо свой тип у главной страницы/узла, либо немного править тему.
Это если с первого взгляда.
второй взгляд... для phpTemplate-тем можно расширить
<?php
/**
* Override or insert PHPTemplate variables into the templates.
*/
function phptemplate_preprocess_page(&$vars) {
?>
для корректной настройки template_files.
ёкарный.... вот так 6ой
помоему на 5ом попроще всё было....
по-моему, надо просто page-front.tpl.php обозвать
если у неё тип front, то можно. лень было смотреть вчера
А что page-front.tpl.php больше не работает?
упс уже ответили, не обновил страницу