drupal-templates

drupal 7 cusomized user profile template can not save changes

泄露秘密 提交于 2019-12-25 02:13:08
问题 I want to custom my user profile edit page. The edit path is: xxx/user/2/edit 1. In my templage file: function MYTHEME_theme() { 'user_profile_form' => array( 'arguments' => array('form' => NULL), 'render element' => 'form', 'template' => 'user-profile-form', 'path' => drupal_get_path('theme', 'bootstrap_subtheme').'/templates', ), } function MYTHEME_preprocess_user_profile_form(&$vars) { drupal_set_title('Account settings'); unset($vars['form']['account']['mail']['#description']); $vars[

Using preprocess hook on specific node type in Drupal 8

依然范特西╮ 提交于 2019-12-23 18:01:36
问题 I've had success using preprocess page hooks such as: function mytheme_preprocess_page__node_front(&$variables) { ... } and function mytheme_preprocess_page__node_12(&$variables) { ... } which correlate with custom templates named page--front.html.twig and page--12.html.twig, respectively. I'm trying to implement the same hook and template pairing for a content type called Video. I understand that there is a difference in that my examples have been custom templates for specific pages while my

How to modify the drupal search templates?

蹲街弑〆低调 提交于 2019-12-11 07:51:00
问题 I'm attempting to create my own templates for the search pages using drupal 6. When creating these template pages i usually use Drupal Template Suggests but for some reason when creating the files: search-block-form.tpl.php search-result.tpl.php search-results.tpl.php search-theme-form.tpl.php None of them seem to override the Drupal templates for some reason? is there anything special that i have to put in or anything i can test to see if they are working as everything i've tried so far has