Вчера долго и упорно искал на сайте drupal.ru (да и других сайтах схожей тематики) решение одной простой вещие - как удалить заголовок (&title) у определенного типа материала. Все в один голос дают совет - удалить строку
<?php if ($title): print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>'; endif; ?>
из page.tpl.php. Однако, если сделать именно так, то заголовок удалится абсолютно у всех материалов.
Решение:
1. Открываем page.tpl.php вашей темы
2. Находим примерно такую строку:
<?php if ($title): print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>'; endif; ?>
(или похожую. Искать по вхождению $title)
3. Заменяем эту строку на
<?php if($node->type == 'ВАШ ТИП МАТЕРИАЛА (например, story)') {
unset($title); // эта строка выключает отображение заголовка в данном типе материалов.
}
else {
if ($title) { // для всех остальных материалов.
print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>';
}
}
?>
Решение не претендует на оригинальность. Возможно, где-то уже об этом и писалось, но я не нашел. Если кто-то сможет предложить более функциональное и изящное решение, я буду очень рад.
Комментарии
А правльней будет так:
<?php
if($title) {
if($node->type == 'ВАШ ТИП МАТЕРИАЛА (например, story)') {
unset($title); // эта строка выключает отображение заголовка в данном типе материалов.
}
}
else {
print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>';
}
?>
Спасибо за правку. А то я php не очень разбираюсь. Как вы думаете, будет этот код работать в Drupal 6?
Кстати, если написать так, как у вас, заголовок пропадает во всех материалах. Drupal 5.
Да тоже очень нужно такое для Drupal 6.
В своей теме (page.tpl.php) имею такую строчку:
<h1 class="title"><?php print $title ?></h1>
как мне сделать тоже самое?
вот так не получается:
<?php if($title) {
if($node->type == 'mytype') {
unset($title); // эта строка выключает отображение заголовка в данном типе материалов.
}
}
else {
print '<h1'. ($tabs ? ' class="title"' : '') .'>'. $title .'</h1>';
}
?>
А так тоже не получается?
<?php if($node->type == 'faq') {
unset($title); // эта строка выключает отображение заголовка в данном типе материалов.
}
else {
if ($title) { // для всех остальных материалов.
print '<h1 class="title">' . $title .'</h1>';
}
}
?>
и получается, что если есть титл, то что-то делаем, а если титла нет... то выводим титл
Нет так тоже не получается.
Даже если совсем убираю строку:
<h1 class="title"><?php print $title ?></h1>
ничего не меняется, а другого вхождения по $title у меня в page.tpl.php нет.
в node.tpl.php есть строка:
<?php if ($page == 0) { ?><h2 class="title"><a href="<?php print $node_url?>"><?php print $title?></a></h2><?php }; ?>
Ой, а проще все таки создать отдельный пейдж- нод- темплейт для отдельного типа нод
И просто убрать там строчку вывода титла!
page-node-nodetype.tpl.php - здесь уберите Титл, если не хотите его выводить при полном просмотре.
node-nodetype.tpl.php - уберите тут титл, если не хотите его показывать в тизерах.
Не работает в Drupal 5.
а как то же самое сделать для таксономии?? Мне надо чтоб заголовок страницы термина совпадал с самим термином
Так вернее, коллега:
if($node->type == 'ВАШ ТИП МАТЕРИАЛА (например, story)') {
unset($title);
} else {
print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>';
}
}
отличненько! помогло! как раз то что и надо было
спасибо, парни, и мне помогло
Помоему в шестерке эта информация выводится отсюда...
node.tpl.php
<?php if (!$page): ?>
<h2 class="title">
<a href="<?php print $node_url; ?>" title="<?php print $title ?>"><?php print $title; ?></a>
</h2>
<?php endif; ?>
Может конечно я и не прав...
ключевые слова:
если убрать в node.tpl.php то заголовок удалится у всех материалов
Такое есть, например, для форума, когда на главной странице форума заголовок словаря форума.
Я это решил так:
page.tpl.php продублировал и переименовал в page-forum.tpl.php и в нём убрал заголовок.
Ну что, кто-нибудь подскажет как как удалить Заголовок для типа ноды в Drupal 6.x?
В Drupal 6.x сработает следующее:
if($node->type == 'тип_материала,_титл_которого_следует_исключить') {
unset($title);
}
else {
print '<h1 class="title" id="page-title">'. $title .'</h1>';
}
} ?>
А для 7-ки?
<?php
print_r(get_defined_vars()); ?>
Попробовал для 7-ки этот код:
if($node->type == 'тип_материала,_титл_которого_следует_исключить') {
unset($title);
}
else {
print '<h1 class="title" id="page-title">'. $title .'</h1>';
}
} ?>
Жалуется на строку 62 - unset($title);
Notice: Undefined variable: node в функции include() (строка 62
Notice: Trying to get property of non-object в функции include() (строка 62
Хотя работает
Изначально код вывода заголовка был таким:
<h1 id="page-title"><?php print $title; ?></h1>
<?php endif; ?>
наверное нет в шаблоне переменной $node
посмотрите имеющиеся переменные, вставив в код шаблона:
<?php
print_r(get_defined_vars());
?>
а может в коментариях в начале шаблона переменные описаны?
В семерке вроде по стандарту в шаблон передается массив $content c данными..
Короче надо так:
if (isset($variables['node'])) {
$variables['theme_hook_suggestions'][] = 'тип_материала,_титл_которого_следует_исключить'. $variables['node']->type;
}
else {
print '<h1 class="title" id="page-title">'. $title .'</h1>';
}
} ?>
не, соврал, везде заголовок пропал
print_r(get_defined_vars());
?>
мне такую кашу выдает
Array ( [template_file] => sites/all/themes/adaptivetheme/adaptivetheme_/page.tpl.php [variables] => Array ( [page] => Array ( [#show_messages] => 1 [#theme] => page [#theme_wrappers] => Array ( [0] => html ) [#type] => page [#after_build] => Array ( [0] => conditional_fields_element_after_build ) [sidebar_first] => Array ( [system_navigation] => Array ( [6] => Array ( [#theme] => menu_link__navigation [#attributes] => Array ( [class] => Array ( [0] => first [1] => collapsed ) ) [#title] => Добавить содержимое [#href] => node/add [#localized_options] => Array ( ) [#below] => Array ( ) [#original_link] => Array ( [menu_name] => navigation [mlid] => 6 [plid] => 0 [link_path] => node/add [router_path] => node/add [link_title] => Add content [options] => Array ( ) [module] => system [hidden] => 0 [external] => 0 [has_children] => 1 [expanded] => 0 [weight] => 0 [depth] => 1 [customized] => 0 [p1] => 6 [p2] => 0 [p3] => 0 [p4] => 0 [p5] => 0 [p6] => 0 [p7] => 0 [p8] => 0 [p9] => 0 [updated] => 0 [load_functions] => [to_arg_functions] => [access_callback] => _node_add_access [access_arguments] => a:0:{} [page_callback] => node_add_page [page_arguments] => a:0:{} [delivery_callback] => [tab_parent] => [tab_root] => node/add [title] => Добавить содержимое [title_callback] => t [title_arguments] => [theme_callback] => [theme_arguments] => a:0:{} [type] => 6 [description] => [in_active_trail] => [href] => node/add [access] => 1 [localized_options] => Array ( ) ) ) [377] => Array ( [#theme] => menu_link__navigation [#attributes] => Array ( [class] => Array ( [0] => collapsed ) ) [#title] => Импорт [#href] => import [#localized_options] => Array ( ) [#below] => Array ( ) [#original_link] => Array ( [menu_name] => navigation [mlid] => 377 [plid] => 0 [link_path] => import [router_path] => import [link_title] => Import [options] => Array ( ) [module] => system [hidden] => 0 [external] => 0 [has_children] => 1 [expanded] => 0 [weight] => 0 [depth] => 1 [customized] => 0 [p1] => 377 [p2] => 0 [p3] => 0 [p4] => 0 [p5] => 0 [p6] => 0 [p7] => 0 [p8] => 0 [p9] => 0 [updated] => 0 [load_functions] => [to_arg_functions] => [access_callback] => feeds_page_access [access_arguments] => a:0:{} [page_callback] => feeds_page [page_arguments] => a:0:{} [delivery_callback] => [tab_parent] => [tab_root] => import [title] => Импорт [title_callback] => t [title_arguments] => [theme_callback] => [theme_arguments] => a:0:{} [type] => 6 [description] => [in_active_trail] => [href] => import [access] => 1 [localized_options] => Array ( ) ) ) [350] => Array ( [#theme] => menu_link__navigation [#attributes] => Array ( [class] => Array ( [0] => last [1] => leaf ) ) [#title] => Обратная связь [#href] => contact [#localized_options] => Array ( ) [#below] => Array ( ) [#original_link] => Array ( [menu_name] => navigation [mlid] => 350 [plid] => 0 [link_path] => contact [router_path] => contact [link_title] => Contact [options] => Array ( ) [module] => system [hidden] => 0 [external] => 0 [has_children] => 0 [expanded] => 0 [weight] => 0 [depth] => 1 [customized] => 1 [p1] => 350 [p2] => 0 [p3] => 0 [p4] => 0 [p5] => 0 [p6] => 0 [p7] => 0 [p8] => 0 [p9] => 0 [updated] => 0 [load_functions] => [to_arg_functions] => [access_callback] => user_access [access_arguments] => a:1:{i:0;s:29:"access site-wide contact form";} [page_callback] => drupal_get_form [page_arguments] => a:1:{i:0;s:17:"contact_site_form";} [delivery_callback] => [tab_parent] => [tab_root] => contact [title] => Обратная связь [title_callback] => t [title_arguments] => [theme_callback] => [theme_arguments] => a:0:{} [type] => 20 [description] => [in_active_trail] => [href] => contact [access] => 1 [localized_options] => Array ( ) ) ) [#sorted] => 1 [#theme_wrappers] => Array ( [0] => menu_tree__navigation [1] => block ) [#contextual_links] => Array ( [menu] => Array ( [0] => admin/structure/menu/manage [1] => Array ( [0] => navigation ) ) [block] => Array ( [0] => admin/structure/block/manage [1] => Array ( [0] => system [1] => navigation ) ) ) [#block] => stdClass Object ( [bid] => 43 [module] => system [delta] => navigation [theme] => adaptivetheme_ [status] => 1 [weight] => -11 [region] => sidebar_first [custom] => 0 [visibility] => 0 [pages] => [title] => [cache] => -1 [subject] => Навигация ) [#weight] => 1 ) [#sorted] => 1 [#theme_wrappers] => Array ( [0] => region ) [#region] => sidebar_first ) [content] => Array ( [system_main] => Array ( [nodes] => Array ( [73] => Array ( [field_shifr] => Array ( [#theme] => field [#weight] => 1 [#title] => Шифр [#access] => 1 [#label_display] => above [#view_mode] => full [#language] => und [#field_name] => field_shifr [#field_type] => taxonomy_term_reference [#field_translatable] => 0 [#entity_type] => node [#bundle] => enterprise [#object] => stdClass Object ( [vid] => 73 [uid] => 1 [title] => Минский завод строительных материалов [log] => Created by FeedsNodeProcessor [status] => 1 [comment] => 2 [promote] => 0 [sticky] => 0 [ds_switch] => [nid] => 73 [type] => enterprise [language] => und [created] => 1317369882 [changed] => 1317369882 [tnid] => 0 [translate] => 0 [revision_timestamp] => 1317369882 [revision_uid] => 1 [body] => Array ( ) [field_shifr] => Array ( [und] => Array ( [0] => Array ( [tid] => 136 [taxonomy_term] => stdClass Object ( [tid] => 136 [vid] => 10 [name] => Мн13 [description] => [format] => [weight] => 0 [vocabulary_machine_name] => shifr [rdf_mapping] => Array ( [rdftype] => Array ( [0] => skos:Concept ) [name] => Array ( [predicates] => Array ( [0] => rdfs:label [1] => skos:prefLabel ) ) [description] => Array ( [predicates] => Array ( [0] => skos:definition ) ) [vid] => Array ( [predicates] => Array ( [0] => skos:inScheme ) [type] => rel ) [parent] => Array ( [predicates] => Array ( [0] => skos:broader ) [type] => rel ) ) [uri] => Array ( [path] => taxonomy/term/136 [options] => Array ( [entity_type] => taxonomy_term [entity] => stdClass Object *RECURSION* ) ) ) ) ) ) [field_ooo] => Array ( [und] => Array ( [0] => Array ( [tid] => 72 [taxonomy_term] => stdClass Object ( [tid] => 72 [vid] => 20 [name] => ОАО [description] => [format] => [weight] => 0 [vocabulary_machine_name] => ooo [rdf_mapping] => Array ( [rdftype] => Array ( [0] => skos:Concept ) [name] => Array ( [predicates] => Array ( [0] => rdfs:label [1] => skos:prefLabel ) ) [description] => Array ( [predicates] => Array ( [0] => skos:definition ) ) [vid] => Array ( [predicates] => Array ( [0] => skos:inScheme ) [type] => rel ) [parent] => Array ( [predicates] => Array ( [0] => skos:broader ) [type] => rel ) ) [uri] => Array ( [path] => taxonomy/term/72 [options] => Array ( [entity_type] => taxonomy_term [entity] => stdClass Object *RECURSION* ) ) ) ) ) ) [feed_nid] => 0 [rdf_mapping] => Array ( [rdftype] => Array ( [0] => sioc:Item [1] => foaf:Document ) [title] => Array ( [predicates] => Array ( [0] => dc:title ) ) [created] => Array ( [predicates] => Array ( [0] => dc:date [1] => dc:created ) [datatype] => xsd:dateTime [callback] => date_iso8601 ) [changed] => Array ( [predicates] => Array ( [0] => dc:modified ) [datatype] => xsd:dateTime [callback] => date_iso8601 ) [body] => Array ( [predicates] => Array ( [0] => content:encoded ) ) [uid] => Array ( [predicates] => Array ( [0] => sioc:has_creator ) [type] => rel ) [name] => Array ( [predicates] => Array ( [0] => foaf:name ) ) [comment_count] => Array ( [predicates] => Array ( [0] => sioc:num_replies ) [datatype] => xsd:integer ) [last_activity] => Array ( [predicates] => Array ( [0] => sioc:last_activity_date ) [datatype] => xsd:dateTime [callback] => date_iso8601 ) ) [cid] => 0 [last_comment_timestamp] => 1317369882 [last_comment_name] => [last_comment_uid] => 1 [comment_count] => 0 [name] => admin [picture] => 0 [data] => b:0; [uri] => Array ( [path] => node/73 [options] => Array ( [entity_type] => node [entity] => stdClass Object *RECURSION* ) ) [entity_view_prepared] => 1 ) [#items] => Array ( [0] => Array ( [tid] => 136 [taxonomy_term] => stdClass Object ( [tid] => 136 [vid] => 10 [name] => Мн13 [description] => [format] => [weight] => 0 [vocabulary_machine_name] => shifr [rdf_mapping] => Array ( [rdftype] => Array ( [0] => skos:Concept ) [name] => Array ( [predicates] => Array ( [0] => rdfs:label [1] => skos:prefLabel ) ) [description] => Array ( [predicates] => Array ( [0] => skos:definition ) ) [vid] => Array ( [predicates] => Array ( [0] => skos:inScheme ) [type] => rel ) [parent] => Array ( [predicates] => Array ( [0] => skos:broader ) [type] => rel ) ) [uri] => Array ( [path] => taxonomy/term/136 [options] => Array ( [entity_type] => taxonomy_term [entity] => stdClass Object *RECURSION* ) ) ) ) ) [#formatter] => taxonomy_term_reference_link [0] => Array ( [#type] => link [#title] => Мн13 [#href] => taxonomy/term/136 [#options] => Array ( [entity_type] => taxonomy_term [entity] => stdClass Object ( [tid] => 136 [vid] => 10 [name] => Мн13 [description] => [format] => [weight] => 0 [vocabulary_machine_name] => shifr [rdf_mapping] => Array ( [rdftype] => Array ( [0] => skos:Concept ) [name] => Array ( [predicates] => Array ( [0] => rdfs:label [1] => skos:prefLabel ) ) [description] => Array ( [predicates] => Array ( [0] => skos:definition ) ) [vid] => Array ( [predicates] => Array ( [0] => skos:inScheme ) [type] => rel ) [parent] => Array ( [predicates] => Array ( [0] => skos:broader ) [type] => rel ) ) [uri] => Array ( [path] => taxonomy/term/136 [options] => Array ( [entity_type] => taxonomy_term [entity] => stdClass Object *RECURSION* ) ) ) [attributes] => Array ( [typeof] => Array ( [0] => skos:Concept ) [property] => Array ( [0] => rdfs:label [1] => skos:prefLabel ) ) ) ) ) [field_ooo] => Array ( [#theme] => field [#weight] => 2 [#title] => Организационно-правовая форма [#access] => 1 [#label_display] => above [#view_mode] => full [#language] => und [#field_name] => field_ooo [#field_type] => taxonomy_term_reference [#field_translatable] => 0 [#entity_type] => node [#bundle] => enterprise [#object] => stdClass Object ( [vid] => 73 [uid] => 1 [title] => Минский завод строительных материалов [log] => Created by FeedsNodeProcessor [status] => 1 [comment] => 2 [promote] => 0 [sticky] => 0 [ds_switch] => [nid] => 73 [type] => enterprise [language] => und [created] => 1317369882 [changed] => 1317369882 [tnid] => 0 [translate] => 0 [revision_timestamp] => 1317369882 [revision_uid] => 1 [body] => Array ( ) [field_shifr] => Array ( [und] => Array ( [0] => Array ( [tid] => 136 [taxonomy_term] => stdClass Object ( [tid] => 136 [vid] => 10 [name] => Мн13 [description] => [format] => [weight] => 0 [vocabulary_machine_name] => shifr [rdf_mapping] => Array ( [rdftype] => Array ( [0] => skos:Concept ) [name] => Array ( [predicates] => Array ( [0] => rdfs:label [1] => skos:prefLabel ) ) [description] => Array ( [predicates] => Array ( [0] => skos:definition ) ) [vid] => Array ( [predicates] => Array ( [0] => skos:inScheme ) [type] => rel ) [parent] => Array ( [predicates] => Array ( [0] => skos:broader ) [type] => rel ) ) [uri] => Array ( [path] => taxonomy/term/136 [options] => Array ( [entity_type] => taxonomy_term [entity] => stdClass Object *RECURSION* ) ) ) ) ) ) [field_ooo] => Array ( [und] => Array ( [0] => Array ( [tid] => 72 [taxonomy_term] => stdClass Object ( [tid] => 72 [vid] => 20 [name] => ОАО [description] => [format] => [weight] => 0 [vocabulary_machine_name] => ooo [rdf_mapping] => Array ( [rdftype] => Array ( [0] => skos:Concept ) [name] => Array ( [predicates] => Array ( [0] => rdfs:label [1] => skos:prefLabel ) ) [description] => Array ( [predicates] => Array ( [0] => skos:definition ) ) [vid] => Array ( [predicates] => Array ( [0] => skos:inScheme ) [type] => rel ) [parent] => Array ( [predicates] => Array ( [0] => skos:broader ) [type] => rel ) ) [uri] => Array ( [path] => taxonomy/term/72 [options] => Array ( [entity_type] => taxonomy_term [entity] => stdClass Object *RECURSION* ) ) ) ) ) ) [feed_nid] => 0 [rdf_mapping] => Array ( [rdftype] => Array ( [0] => sioc:Item [1] => foaf:Document ) [title] => Array ( [predicates] => Array ( [0] => dc:title ) ) [created] => Array ( [predicates] => Array ( [0] => dc:date [1] => dc:created ) [datatype] => xsd:dateTime [callback] => date_iso8601 ) [changed] => Array ( [predicates] => Array ( [0] => dc:modified ) [datatype] => xsd:dateTime [callback] => date_iso8601 ) [body] => Array ( [predicates] => Array ( [0] => content:encoded ) ) [uid] => Array ( [predicates] => Array ( [0] => sioc:has_creator ) [type] => rel ) [name] => Array ( [predicates] => Array ( [0] => foaf:name ) ) [comment_count] => Array ( [predicates] => Array ( [0] => sioc:num_replies ) [datatype] => xsd:integer ) [last_activity] => Array ( [predicates] => Array ( [0] => sioc:last_activity_date ) [datatype] => xsd:dateTime [callback] => date_iso8601 ) ) [cid] => 0 [last_comment_timestamp] => 1317369882 [last_comment_name] => [last_comment_uid] => 1 [comment_count] => 0 [name] => admin [picture] => 0 [data] => b:0; [uri] => Array ( [path] => node/73 [options] => Array ( [entity_type] => node [entity] => stdClass Object *RECURSION* ) ) [entity_view_prepared] => 1 ) [#items] => Array ( [0] => Array ( [tid] => 72 [taxonomy_term] => stdClass Object ( [tid] => 72 [vid] => 20 [name] => ОАО [description] => [format] => [weight] => 0 [vocabulary_machine_name] => ooo [rdf_mapping] => Array ( [rdftype] => Array ( [0] => skos:Concept ) [name] => Array ( [predicates] => Array ( [0] => rdfs:label [1] => skos:prefLabel ) ) [description] => Array ( [predicates] => Array ( [0] => skos:definition ) ) [vid] => Array ( [predicates] => Array ( [0] => skos:inScheme ) [type] => rel ) [parent] => Array ( [predicates] => Array ( [0] => skos:broader ) [type] => rel ) ) [uri] => Array ( [path] => taxonomy/term/72 [options] => Array ( [entity_type] => taxonomy_term [entity] => stdClass Object *RECURSION* ) ) ) ) ) [#formatter] => taxonomy_term_reference_link [0] => Array ( [#type] => link [#title] => ОАО [#href] => taxonomy/term/72 [#options] => Array ( [entity_type] => taxonomy_term [entity] => stdClass Object ( [tid] => 72 [vid] => 20 [name] => ОАО [description] => [format] => [weight] => 0 [vocabulary_machine_name] => ooo [rdf_mapping] => Array ( [rdftype] => Array ( [0] => skos:Concept ) [name] => Array ( [predicates] => Array ( [0] => rdfs:label [1] => skos:prefLabel ) ) [description] => Array ( [predicates] => Array ( [0] => skos:definition ) ) [vid] => Array ( [predicates] => Array ( [0] => skos:inScheme ) [type] => rel ) [parent] => Array ( [predicates] => Array ( [0] => skos:broader ) [type] => rel ) ) [uri] => Array ( [path] => taxonomy/term/72 [options] => Array ( [entity_type] => taxonomy_term [entity] => stdClass Object *RECURSION* ) ) ) [attributes] => Array ( [typeof] => Array ( [0] => skos:Concept ) [property] => Array ( [0] => rdfs:label [1] => skos:prefLabel ) ) ) ) ) [#pre_render] => Array ( [0] => _field_extra_fields_pre_render [1] => field_group_build_pre_render ) [#entity_type] => node [#bundle] => enterprise [#groups] => Array ( ) [#fieldgroups] => Array ( ) [#group_children] => Array ( ) [links] => Array ( [#theme] => links__node [#pre_render] => Array ( [0] => drupal_pre_render_links ) [#attributes] => Array ( [class] => Array ( [0] => links [1] => inline ) ) [node] => Array ( [#theme] => links__node__node [#links] => Array ( ) [#attributes] => Array ( [class] => Array ( [0] => links [1] => inline ) ) ) [comment] => Array ( [#theme] => links__node__comment [#links] => Array ( ) [#attributes] => Array ( [class] => Array ( [0] => links [1] => inline ) ) ) [nodereference_url] => Array ( [#theme] => links__node__nodereference [#links] => Array ( ) [#attributes] => Array ( [class] => Array ( [0] => links [1] => inline ) ) ) ) [comments] => Array ( [comment_form] => Array ( [#node] => stdClass Object ( [vid] => 73 [uid] => 1 [title] => Минский завод строительных материалов [log] => Created by FeedsNodeProcessor [status] => 1 [comment] => 2 [promote] => 0 [sticky] => 0 [ds_switch] => [nid] => 73 [type] => enterprise [language] => und [created] => 1317369882 [changed] => 1317369882 [tnid] => 0 [translate] => 0 [revision_timestamp] => 1317369882 [revision_uid] => 1 [body] => Array ( ) [field_shifr] => Array ( [und] => Array ( [0] => Array ( [tid] => 136 [taxonomy_term] => stdClass Object ( [tid] => 136 [vid] => 10 [name] => Мн13 [description] => [format] => [weight] => 0 [vocabulary_machine_name] => shifr [rdf_mapping] => Array ( [rdftype] => Array ( [0] => skos:Concept ) [name] => Array ( [predicates] => Array ( [0] => rdfs:label [1] => skos:prefLabel ) ) [description] => Array ( [predicates] => Array ( [0] => skos:definition ) ) [vid] => Array ( [predicates] => Array ( [0] => skos:inScheme ) [type] => rel ) [parent] => Array ( [predicates] => Array ( [0] => skos:broader ) [type] => rel ) ) [uri] => Array ( [path] => taxonomy/term/136 [options] => Array ( [entity_type] => taxonomy_term [entity] => stdClass Object *RECURSION* ) ) ) ) ) ) [field_ooo] => Array ( [und] => Array ( [0] => Array ( [tid] => 72 [taxonomy_term] => stdClass Object ( [tid] => 72 [vid] => 20 [name] => ОАО [description] => [format] => [weight] => 0 [vocabulary_machine_name] => ooo [rdf_mapping] => Array ( [rdftype] => Array ( [0] => skos:Concept ) [name] => Array ( [predicates] => Array ( [0] => rdfs:label [1] => skos:prefLabel ) ) [description] => Array ( [predicates] => Array ( [0] => skos:definition ) ) [vid] => Array ( [predicates] => Array ( [0] => skos:inScheme ) [type] => rel ) [parent] => Array ( [predicates] => Array ( [0] => skos:broader ) [type] => rel ) ) [uri] => Array ( [path] => taxonomy/term/72 [options] => Array ( [entity_type] => taxonomy_term [entity] => stdClass Object *RECURSION* ) ) ) ) ) ) [feed_nid] => 0 [rdf_mapping] => Array ( [rdftype] => Array ( [0] => sioc:Item [1] => foaf:Document ) [title] => Array ( [predicates] => Array ( [0] => dc:title ) ) [created] => Array ( [predicates] => Array ( [0] => dc:date [1] => dc:created ) [datatype] => xsd:dateTime [callback] => date_iso8601 ) [changed] => Array ( [predicates] => Array ( [0] => dc:modified ) [datatype] => xsd:dateTime [callback] => date_iso8601 ) [body] => Array ( [predicates] => Array ( [0] => content:encoded ) ) [uid] => Array ( [predicates] => Array ( [0] => sioc:has_creator ) [type] => rel ) [name] => Array ( [predicates] => Array ( [0] => foaf:name ) ) [comment_count] => Array ( [predicates] => Array ( [0] => sioc:num_replies ) [datatype] => xsd:integer ) [last_activity] => Array ( [predicates] => Array ( [0] => sioc:last_activity_date ) [datatype] => xsd:dateTime [callback] => date_iso8601 ) ) [cid] => 0 [last_comment_timestamp] => 1317369882 [last_comment_name] => [last_comment_uid] => 1 [comment_count] => 0 [name] => admin [picture] => 0 [data] => b:0; [uri] => Array ( [path] => node/73 [options] => Array ( [entity_type] => node [entity] => stdClass Object *RECURSION* ) ) [entity_view_prepared] => 1 ) [#id] => comment-form [#attributes] => Array ( [class] => Array ( [0] => comment-form ) ) [#theme] => Array ( [0] => comment_form__node_enterprise [1] => comment_form ) [#action] => /comment/reply/73 [author] => Array ( [#weight] => -2 [_author] => Array ( [#type] => item [#title] => Ваше имя [#markup] => admin [#pre_render] => Array ( [0] => drupal_pre_render_markup [1] => ctools_dependent_pre_render ) [#theme_wrappers] => Array ( [0] => form_element ) [#after_build] => Array ( [0] => conditional_fields_element_after_build ) [#defaults_loaded] => 1 [#tree] => [#parents] => Array ( [0] => _author ) [#array_parents] => Array ( [0] => author [1] => _author ) [#weight] => 0 [#processed] => [#required] => [#attributes] => Array ( ) [#title_display] => before [#id] => edit-author--2 [#sorted] => 1 [#after_build_done] => 1 ) [name] => Array ( [#type] => value [#value] => admin [#input] => 1 [#after_build] => Array ( [0] => conditional_fields_element_after_build ) [#defaults_loaded] => 1 [#tree] => [#parents] => Array ( [0] => name ) [#array_parents] => Array ( [0] => author [1] => name ) [#weight] => 0.001 [#processed] => [#required] => [#attributes] => Array ( ) [#title_display] => before [#id] => edit-name [#name] => name [#sorted] => 1 [#after_build_done] => 1 ) [mail] => Array ( [#type] => textfield [#title] => E-mail [#default_value] => [#required] => [#maxlength] => 64 [#size] => 30 [#description] => Содержимое этого поля является приватным и не будет отображаться публично. [#access] => [#input] => 1 [#autocomplete_path] => [#process] => Array ( [0] => ajax_process_form ) [#theme] => textfield [#theme_wrappers] => Array ( [0] => form_element ) [#after_build] => Array ( [0] => conditional_fields_element_after_build ) [#pre_render] => Array ( [0] => ctools_dependent_pre_render ) [#defaults_loaded] => 1 [#tree] => [#parents] => Array ( [0] => mail ) [#array_parents] => Array ( [0] => author [1] => mail ) [#weight] => 0.002 [#processed] => 1 [#attributes] => Array ( ) [#title_display] => before [#id] => edit-mail [#name] => mail [#value] => [#ajax_processed] => [#sorted] => 1 [#after_build_done] => 1 ) [homepage] => Array ( [#type] => textfield [#title] => Домашняя страница [#default_value] => [#maxlength] => 255 [#size] => 30 [#access] => [#input] => 1 [#autocomplete_path] => [#process] => Array ( [0] => ajax_process_form ) [#theme] => textfield [#theme_wrappers] => Array ( [0] => form_element ) [#after_build] => Array ( [0] => conditional_fields_element_after_build ) [#pre_render] => Array ( [0] => ctools_dependent_pre_render ) [#defaults_loaded] => 1 [#tree] => [#parents] => Array ( [0] => homepage ) [#array_parents] => Array ( [0] => author [1] => homepage ) [#weight] => 0.003 [#processed] => 1 [#required] => [#attributes] => Array ( ) [#title_display] => before [#id] => edit-homepage [#name] => homepage [#value] => [#ajax_processed] => [#sorted] => 1 [#after_build_done] => 1 ) [date] => Array ( [#type] => textfield [#title] => Время создания [#default_value] => [#maxlength] => 25 [#size] => 20 [#access] => [#input] => 1 [#autocomplete_path] => [#process] => Array ( [0] => ajax_process_form ) [#theme] => textfield [#theme_wrappers] => Array ( [0] => form_element ) [#after_build] => Array ( [0] => conditional_fields_element_after_build ) [#pre_render] => Array ( [0] => ctools_dependent_pre_render ) [#defaults_loaded] => 1 [#tree] => [#parents] => Array ( [0] => date ) [#array_parents] => Array ( [0] => author [1] => date ) [#weight] => 0.004 [#processed] => 1 [#required] => [#attributes] => Array ( ) [#title_display] => before [#id] => edit-date [#name] => date [#value] => [#ajax_processed] => [#sorted] => 1 [#after_build_done] => 1 ) [status] => Array ( [#type] => radios [#title] => Статус [#default_value] => 1 [#options] => Array ( [1] => Опубликовано [0] => Не опубликовано ) [#access] => [#input] => 1 [#process] => Array ( [0] => form_process_radios ) [#theme_wrappers] => Array ( [0] => radios ) [#pre_render] => Array ( [0] => form_pre_render_conditional_form_element [1] => ctools_dependent_pre_render ) [#after_build] => Array ( [0] => conditional_fields_element_after_build ) [#defaults_loaded] => 1 [#tree] => [#parents] => Array ( [0] => status ) [#array_parents] => Array ( [0] => author [1] => status ) [#weight] => 0.005 [#processed] => 1 [#required] => [#attributes] => Array ( ) [#title_display] => before [#id] => edit-status [#name] => status [#value] => 1 [1] => Array ( [#type] => radio [#title] => Опубликовано [#return_value] => 1 [#default_value] => 1 [#attributes] => Array ( ) [#parents] => Array ( [0] => status ) [#id] => edit-status-1 [#ajax] => [#weight] => 0.001 [#input] => 1 [#process] => Array ( [0] => ajax_process_form ) [#theme] => radio [#theme_wrappers] => Array ( [0] => form_element ) [#title_display] => after [#after_build] => Array ( [0] => conditional_fields_element_after_build ) [#pre_render] => Array ( [0] => ctools_dependent_pre_render ) [#defaults_loaded] => 1 [#tree] => [#access] => [#array_parents] => Array ( [0] => author [1] => status [2] => 1 ) [#processed] => 1 [#required] => [#name] => status [#value] => 1 [#ajax_processed] => [#sorted] => 1 [#after_build_done] => 1 ) [0] => Array ( [#type] => radio [#title] => Не опубликовано [#return_value] => 0 [#default_value] => 1 [#attributes] => Array ( ) [#parents] => Array ( [0] => status ) [#id] => edit-status-0 [#ajax] => [#weight] => 0.002 [#input] => 1 [#process] => Array ( [0] => ajax_process_form ) [#theme] => radio [#theme_wrappers] => Array ( [0] => form_element ) [#title_display] => after [#after_build] => Array ( [0] => conditional_fields_element_after_build ) [#pre_render] => Array ( [0] => ctools_dependent_pre_render ) [#defaults_loaded] => 1 [#tree] => [#access] => [#array_parents] => Array ( [0] => author [1] => status [2] => 0 ) [#processed] => 1 [#required] => [#name] => status [#value] => 1 [#ajax_processed] => [#sorted] => 1 [#after_build_done] => 1 ) [#after_build_done] => 1 ) [#tree] => [#parents] => Array ( [0] => author ) [#array_parents] => Array ( [0] => author ) [#processed] => [#required] => [#attributes] => Array ( ) [#title_display] => before [#id] => edit-author [#sorted] => 1 ) [subject] => Array ( [#type] => textfield [#title] => Заголовок [#maxlength] => 64 [#default_value] => [#access] => [#weight] => -1 [#input] => 1 [#size] => 60 [#autocomplete_path] => [#process] => Array ( [0] => ajax_process_form ) [#theme] => textfield [#theme_wrappers] => Array ( [0] => form_element ) [#after_build] => Array ( [0] => conditional_fields_element_after_build ) [#pre_render] => Array ( [0] => ctools_dependent_pre_render ) [#defaults_loaded] => 1 [#tree] => [#parents] => Array ( [0] => subject ) [#array_parents] => Array ( [0] => subject ) [#processed] => 1 [#required] => [#attributes] => Array ( ) [#title_display] => before [#id] => edit-subject [#name] => subject [#value] => [#ajax_processed] => [#sorted] => 1 [#after_build_done] => 1 ) [is_anonymous] => Array ( [#type] => value [#value] => [#input] => 1 [#after_build] => Array ( [0] => conditional_fields_element_after_build ) [#defaults_loaded] => 1 [#tree] => [#parents] => Array ( [0] => is_anonymous ) [#array_parents] => Array ( [0] => is_anonymous ) [#weight] => 0.002 [#processed] => [#required] => [#attributes] => Array ( ) [#title_display] => before [#id] => edit-is-anonymous [#name] => is_anonymous [#sorted] => 1 [#after_build_done] => 1 ) [cid] => Array ( [#type] => value [#value] => [#input] => 1 [#after_build] => Array ( [0] => conditional_fields_element_after_build ) [#defaults_loaded] => 1 [#tree] => [#parents] => Array ( [0] => cid ) [#array_parents] => Array ( [0] => cid ) [#weight] => 0.003 [#processed] => [#required] => [#attributes] => Array ( ) [#title_display] => before [#id] => edit-cid [#name] => cid [#sorted] => 1 [#after_build_done] => 1 ) [pid] => Array ( [#type] => value [#value] => [#input] => 1 [#after_build] => Array ( [0] => conditional_fields_element_after_build ) [#defaults_loaded] => 1 [#tree] => [#parents] => Array ( [0] => pid ) [#array_parents] => Array ( [0] => pid ) [#weight] => 0.004 [#processed] => [#required] => [#attributes] => Array ( ) [#title_display] => before [#id] => edit-pid [#name] => pid [#sorted] => 1 [#after_build_done] => 1 ) [nid] => Array ( [#type] => value [#value] => 73 [#input] => 1 [#after_build] => Array ( [0] => conditional_fields_element_after_build ) [#defaults_loaded] => 1 [#tree] => [#parents] => Array ( [0] => nid ) [#array_parents] => Array ( [0] => nid ) [#weight] => 0.005 [#processed] => [#required] => [#attributes] => Array ( ) [#title_display] => before [#id] => edit-nid [#name] => nid [#sorted] => 1 [#after_build_done] => 1 ) [language] => Array ( [#type] => value [#value] => und [#input] => 1 [#after_build] => Array ( [0] => conditional_fields_element_after_build ) [#defaults_loaded] => 1 [#tree] => [#parents] => Array ( [0] => language ) [#array_parents] => Array ( [0] => language ) [#weight] => 0.006 [#processed] => [#required] => [#attributes] => Array ( ) [#title_display] => before [#id] => edit-language [#name] => language [#sorted] => 1 [#after_build_done] => 1 ) [uid] => Array ( [#type] => value [#value] => 0 [#input] => 1 [#after_build] => Array ( [0] => conditional_fields_element_after_build ) [#defaults_loaded] => 1 [#tree] => [#parents] => Array ( [0] => uid ) [#array_parents] => Array ( [0] => uid ) [#weight] => 0.007 [#processed] => [#required] => [#attributes] => Array ( ) [#title_display] => before [#id] => edit-uid [#name] => uid [#sorted] => 1 [#after_build_done] => 1 ) [node_type] => Array ( [#type] => value [#value] => comment_node_enterprise [#input] => 1 [#after_build] => Array ( [0] => conditional_fields_element_after_build ) [#defaults_loaded] => 1 [#tree] => [#parents] => Array ( [0] => node_type ) [#array_parents] => Array ( [0] => node_type ) [#weight] => 0.008 [#processed] => [#required] => [#attributes] => Array ( ) [#title_display] => before [#id] => edit-node-type [#name] => node_type [#sorted] => 1 [#after_build_done] => 1 ) [actions] => Array ( [#type] => actions [submit] => Array ( [#type] => submit [#value] => Сохранить [#access] => 1 [#weight] => 19 [#input] => 1 [#name] => op [#button_type] => submit [#executes_submit_callback] => 1 [#limit_validation_errors] => [#process] => Array ( [0] => ajax_process_form ) [#theme_wrappers] => Array ( [0] => button ) [#after_build] => Array ( [0] => conditional_fields_element_after_build ) [#defaults_loaded] => 1 [#tree] => [#parents] => Array ( [0] => submit ) [#array_parents] => Array ( [0] => actions [1] => submit ) [#processed] => 1 [#required] => [#attributes] => Array ( ) [#title_display] => before [#id] => edit-submit [#ajax_processed] => [#sorted] => 1 [#after_build_done] => 1 ) [preview] => Array ( [#type] => submit [#value] => Предпросмотр [#access] => 1 [#weight] => 20 [#submit] => Array ( [0] => comment_form_build_preview ) [#input] => 1 [#name] => op [#button_type] => submit [#executes_submit_callback] => 1 [#limit_validation_errors] => [#process] => Array ( [0] => ajax_process_form ) [#theme_wrappers] => Array ( [0] => button ) [#after_build] => Array ( [0] => conditional_fields_element_after_build ) [#defaults_loaded] => 1 [#tree] => [#parents] => Array ( [0] => preview ) [#array_parents] => Array ( [0] => actions [1] => preview ) [#processed] => 1 [#required] => [#attributes] => Array ( ) [#title_display] => before [#id] => edit-preview [#ajax_processed] => [#sorted] => 1 [#after_build_done] => 1 ) [#theme_wrappers] => Array ( [0] => container ) [#process] => Array ( [0] => form_process_actions [1] => form_process_container ) [#weight] => 100 [#after_build] => Array ( [0] => conditional_fields_element_after_build ) [#defaults_loaded] => 1 [#tree] => [#parents] => Array ( [0] => actions ) [#array_parents] => Array ( [0] => actions ) [#processed] => 1 [#required] => [#attributes] => Array ( [class] => Array ( [0] => form-actions ) ) [#title_display] => before [#id] => edit-actions [#after_build_done] => 1 ) [#parents] => Array ( ) [comment_body] => Array ( [#type] => container [#attributes] => Array ( [class] => Array ( [0] => field-type-text-long [1] => field-name-comment-body [2] => field-widget-text-textarea ) ) [#weight] => 0 [#tree] => 1 [#language] => und [und] => Array ( [0] => Array ( [#entity_type] => comment [#bundle] => comment_node_enterprise [#field_name] => comment_body [#language] => und [#field_parents] => Array ( ) [#columns] => Array ( [0] => value [1] => format ) [#title] => Comment [#description] => [#required] => 1 [#delta] => 0 [#weight] => 0 [value] => Array ( [#entity_type] => comment [#bundle] => comment_node_enterprise [#field_name] => comment_body [#language] => und [#field_parents] => Array ( ) [#columns] => Array ( [0] => value [1] => format ) [#title] => Comment [#description] => [#required] => 1 [#delta] => 0 [#weight] => 0 [#type] => textarea [#default_value] => [#rows] => 5 [#attributes] => Array ( [class] => Array ( [0] => text-full ) ) [#input] => 1 [#cols] => 60 [#resizable] => 1 [#process] => Array ( [0] => ajax_process_form ) [#theme] => textarea [#theme_wrappers] => Array ( [0] => form_element ) [#after_build] => Array ( [0] => conditional_fields_element_after_build ) [#pre_render] => Array ( [0] => ctools_dependent_pre_render ) [#defaults_loaded] => 1 [#tree] => 1 [#parents] => Array ( [0] => comment_body [1] => und [2] => 0 [3] => value ) [#array_parents] => Array ( [0] => comment_body [1] => und [2] => 0 [3] => value ) [#processed] => 1 [#title_display] => before [#id] => edit-comment-body-und-0-value [#name] => comment_body[und][0][value] [#value] => [#ajax_processed] => [#sorted] => 1 [#after_build_done] => 1 ) [#tree] => 1 [#parents] => Array ( [0] => comment_body [1] => und [2] => 0 ) [#array_parents] => Array ( [0] => comment_body [1] => und [2] => 0 ) [#processed] => [#attributes] => Array ( ) [#title_display] => before [#id] => edit-comment-body-und-0 ) [#theme] => field_multiple_value_form [#field_name] => comment_body [#cardinality] => 1 [#title] => Comment [#required] => 1 [#description] => [#prefix] =>
и т.д.
если открыть исходный код страницы... там будет не каша... или функцию в тег
<pre>
обернутьДля этой задачи есть модуль exclude_node_title - позволяет убирать Title для конкретной ноды или типа материала. Есть версии под 6.x и 7.x
Спасибо!