Свой шаблон страницы node/add
Подскажите пожалуста кто знает или когда то делал кастомную страницу по добавлении материала node/add.
Пройдя по этой ссылки обычно высвечивается список материалов которые можно создать, и мне надо поменять дизайн данной страницы.
Что бы выводилось не это
<?phpfunction theme_node_add_list($variables) {
$content = $variables['content'];
$output = '';
if ($content) {
$output = '<dl class="node-type-list">';
foreach ($content as $item) {
$output .= '<dt>' . l($item['title'], $item['href'], $item['localized_options']) . '</dt>';
$output .= '<dd>' . filter_xss_admin($item['description']) . '</dd>';
}
$output .= '</dl>';
}
else {
$output = '<p>' . t('You have not created any content types yet. Go to the <a href="create-content">content type creation page</a> to add a new content type.', array('create-content' => url('admin/structure/types/add'))) . '</p>';
}
return $output;
}?>
А классы которые можно будет задать свои
Что то типа такого
<?phpfunction theme_node_add_list($variables) {
$content = $variables['content'];
$output = '';
if ($content) {
$output = '<div class="node-type-list">';
foreach ($content as $item) {
<div class="node-type-list-icon"></div>
$output .= '<div class="node-type-list-description">' . filter_xss_admin($item['description']) . '</div>';
$output .= '<div class="node-type-list-title">' . l($item['title'], $item['href'], $item['localized_options']) . '</div>';
}
$output .= '</div>';
}
else {
$output = '<p>' . t('You have not created any content types yet. Go to the <a href="create-content">content type creation page</a> to add a new content type.', array('create-content' => url('admin/structure/types/add'))) . '</p>';
}
return $output;
}?>
пробывал создавать page-node-add.tpl.php
- Блог
- Войдите или зарегистрируйтесь, чтобы отправлять комментарии
Комментарии
myTheme_node_add_list разместить в template.php Вашей темы
А что насчет самого шаблона админки? Где его наковырять можно?
hook_menu_alter