Theme templates are part of Drupal's theming system and allow for the customization of Drupal sites.

learn more… | top users | synonyms (3)

0
votes
1answer
12 views

Does creating multiple tpl files affect site performance?

I am creating different tpl file for each and every content type. (Including every view) Is it a good practice? And does it affect site performance? Any suggestions? thanks
0
votes
1answer
21 views

Finding out template

I'm working on this web site which I need to make changes to the heading part and I need to know which template or file is generating it so that I can add a slogan. My first attempt was using theme ...
0
votes
1answer
12 views

How can classes be removed from panel panes?

Is there a way to remove the default 'panel-pane' classes, without creating hundreds of templates for different entities, and while still keeping the option of adding custom classes to panes?
1
vote
1answer
12 views

overriding template file of display suite layout applies on other pages

I created a display suite layout "tow column stacked" in manage user section, then I want to override that template, and make a new one in my theme templates folder, the ds module suggest for me : ...
0
votes
0answers
17 views

Drupal Views Table with Alternating Amount of Columns

I'm trying to make a view with alternating amount of columns. The first row should have only 1 column, while the second row needs 2 colums, third 1 column and fourth again 2 coulumns. The fields ...
0
votes
2answers
20 views

Altering button title it becomes inactive

The override function I use in my bootstrap sub-theme template.php: function subtheme_form_titles_node_form_alter(&$form, &$form_state) { $form['actions']['submit'] = array( '#type' ...
-1
votes
0answers
15 views

Theme liks cs50.harvard.edu [closed]

I like to make menus like in Cs50.harvard.edu Any modules or plugin which can give a similar effect?
0
votes
1answer
43 views

form rendering through tpl file

I want to render drupal 6 form through tpl file. for that 1. I have written mytheme_theme in template.php file and there I have define my template forms arguments and path for tpl file. I have ...
0
votes
4answers
31 views

module_load_include loads file but also prints path to the file

I am using the api function module_load_include to include some markup in a custom module. The markup gets included and I indeed see it on my page but I am getting a side effect that the path to the ...
0
votes
3answers
33 views

Drupal 7 template_preprocess_block

I am trying to alter content of the system main block but only on the front page. I have added template_preprocess_block() in the template.php file, but is_front is FALSE even though I am on the front ...
0
votes
1answer
38 views

Bootstrap Theme: Theme hook suggestion for user profiles

I've tried to create theme hook suggestions in my template.php to use template files in combination with view modes. My code snippet: function blogtheme_preprocess_user_profile(&$vars) { if ...
1
vote
2answers
50 views

Simulating TYPO3-Template-Engine

For my next drupal project I need more flexibility in content-styling, than the standard approach allows. I need to be able to build the content-body for every single node from different elements. ...
1
vote
3answers
35 views

Override front page to not display promoted article

Is it possible to override front page template to not display the promoted articles? I am using the promote to front page option to filter the contents in a view so I cannot uncheck it.
0
votes
2answers
26 views

theme contact form block

I am using contact_form_blocks-7.x-1.x-dev module. Using this module I have embedd contact us form in my website. For themeing I have created file named block--contact.tpl.php. Cleared cache. but it ...
-1
votes
1answer
31 views

I want to have two page.tpl.php on my site [duplicate]

I want to have two page.tpl.php on my site ..one for my front page and other for rest of pages ...now both have same name page.tpl.php what should I do to make one of them for Front page and other for ...
0
votes
3answers
36 views

How to set header and footer for any drupal_mail messsage?

I am working with drupal 7 site. I would like to know how to create email template for any email sent from drupal system? Is there any hook or template should I implement in my custom module or ...
0
votes
1answer
20 views

Add an input[type=“file”] label

i need to style the input[type="file"], the only way to really style them is to add a <label> which has the same for value as the input's id. Drupal does not provide a correct label in single ...
0
votes
1answer
23 views

How to display only “after now” dates (of multiple) of a date-field in a node?

I have an 'event' node-type with just a body and a date-field. For that date-field, multiple dates are allowed. I'm listing event-nodes in a view and already use filters to only display nodes when ...
1
vote
1answer
15 views

How to add IE specific stylesheet in drupal 7 in drupal way [duplicate]

I want to add this into my Drupal site in a Drupal way! <!--[if IE]> <link type="text/css" rel="stylesheet" href="IE.css" media="all" /> <![endif]--> I know it can be done easily ...
0
votes
1answer
26 views

Node theming through Views or tpl.php files - which one is better for performance?

As an example, let's take a node with 5 fields and two blocks between those fields. E. g. you want an article do be displayed like this: First field Second field Block with related nodes Third ...
0
votes
2answers
23 views

How do I get Drupal 7 to recognize my 404 page override?

I am using a custom 404 page. I also have a theme installed. This is what I did: I created a node 95761 which contains my 404 error page. I set node/95761 to be my 404 error page I've created a ...
0
votes
1answer
27 views

How to change Zen Grid System

Zen is a great theme and comes by 3 columns gris as default and even when i read the documentation i don't know how to change the grid system to 2 columns 30%- 70% for ex.. Can you help me please.
0
votes
1answer
19 views

Solr search, number of results

I'm trying to find a way to display the number of resuts in a solr search. I need to display it in search-results template. Thanks for any hint
0
votes
0answers
81 views

user-register.tpl.php javascript errors

I've got a custom register template working by adding this in my template: // Customize User Login function THEME_theme(&$existing, $type, $theme, $path){ $hooks = array(); // Make ...
0
votes
1answer
26 views

How can I list all Twig functions and filters with their description?

I want a list of all available Twig filters and functions and for each one of them I need to have a description of the function/filter so the user can see what functions and filters are available and ...
0
votes
1answer
16 views

Theming: when I use a smaller device, my main content goes behind my sidebar

I am making a sub-theme from the basic theme for Drupal 7. The side bar works fine on all sizes above 480px in length, but on 480px or below, my content goes behind my sidebar and there is a ...
1
vote
0answers
26 views

Twig templates are not loading

I am using Drupal 8 from github:drupal/drupal@a9ac0fbf17, but having problems creating custom template, using Twig template engine. Here is template file structure: . ├── README.txt ├── ...
1
vote
1answer
51 views

Why are there so many settings.php files one in each folder or sub-directory?

I am Drupal newbie taking over a poorly documented D6 group of sites organized by sub-domains. In examining the dev.[domain].org/sites/ folder I discover folders: all, default, demo.[domain].org and ...
0
votes
2answers
25 views

Separate header and footer for particular content type [closed]

How can I implement separate header and footer for particular content type in drupal 7 ? PLz suggest some solutiuon I want to call a different region--header.tpl.php for particular content type. Is ...
0
votes
1answer
30 views

How to hide a user profile based on custom field?

I need to allow users to turn off the public display of their profile if they wish too. I created a Boolean field to store whether the user wanted the profile shown or hidden. According to this ...
0
votes
1answer
21 views

Programmatically render an imagefield in Drupal 6 as defined in content-field.tpl.php

What sounds like simple task in the first place, has taken me hours without getting a solution: All I want is to render single values of an imagefield just as in the normal node, i.e. as defined in ...
0
votes
1answer
58 views

How to use module template to override a specific Views field and send the right variable?

I hope the title is ok. I've seen many discussion here about using custom templates in a module when using views, but i lack a piece of answer : how to use specific variables from an entity in that ...
0
votes
1answer
26 views

How can render a Block on a Contact form Page

I want to render a Block on a special content type page and on the contact form page. All works fine, but i didn`t found any way to print the Block also on the contact form page. i use in the ...
0
votes
2answers
31 views

Add classes to login form fields D 7

I ma trying to add foundation classes to my #user-register-form fields in D7 <div class="form-item form-type-textfield form-item-name"> <label for="edit-name">Username <span ...
0
votes
0answers
25 views

Multiple views for the same content type

I have a content type “foo” with and Entity Reference to himself. It has 3 different views: “Default”, “Teaser”, “Custom View” (code created). (The teaser and the custom doesn’t display the reference ...
0
votes
1answer
52 views

Generating a random number without duplicates on blog comment

A section of my site is a blog where I allow comments. Each comment has a thumbnail associated with it. If the commenter is a user, then their profile photo is used. If they are anonymous I have a ...
0
votes
1answer
20 views

What should I name my overriding render-function?

I'm just starting out with drupal and need some custom html for an intricate menu system. My plan is to override the html-generating functions in template.php. My theme name is "Drupal subtheme" and ...
0
votes
1answer
39 views

Add placeholder to fom in twig template override

I enabled twig debug and realized need to add block--search.html.twig to my theme. Then I used dump(content) to see if I can add a placeholder to search input field {% extends ...
1
vote
1answer
41 views

Make a custom view mode default

I made a custom view mode in Display Suite and I would like to use it as the default view mode for a given content type. Can anybody enlighten me as to how to do it?
0
votes
0answers
30 views

Move $title variable to region--content.tpl.php

I'm having a bit of trouble sorting something out. I'm trying to move the $title variable to region--content.tpl.php. I think a preprocess function - some variation of template_preprocess_region is ...
0
votes
1answer
16 views

compare terms from userterm and node term

I have users and nodes. bith have the same term referende field: field_area goal is to display a message in node.tpl.php when: - user has term 'south' - node has term 'south' i have used the field ...
0
votes
1answer
24 views

how to provide a content type variable to region--header.tpl.php

I want to hide some inline html from header for specific content type. How cud I provide a content type variable to region--header.tpl.php to put a php condition to hide the html?
0
votes
1answer
58 views

What's going wrong in my template file?

I'm displaying a user's messages in a view (which contains the messages' mid) and created a flag 'Unread' for them. (New messages are automatically flagged with a rule.) I'd now like to give the ...
0
votes
1answer
27 views

page template for view

I have a view which I want to give a different look and feel from the rest of my page. Now the view is displayed as a page at a specific URL. I have tried naming my custom page template like ...
0
votes
1answer
39 views

Node theme template override isn't working

I'm using the paid theme md-alpine and I added a content type called webinars, and a node template for webinars node--webinars.tpl.php The only thing I put in the page is and I only get an HTML page ...
0
votes
0answers
25 views

How to override a Insert module tpl file?

I'm trying to override a .tpl file from the Insert module in my D7 theme. I copied the file from sites/all/modules/insert/templates/image-insert-image.tpl.php to ...
0
votes
1answer
30 views

Custom Theme for Commerce Kickstart 2 not working as expected

hi I followed this really good guide on how to create a custom theme for Commerce Kickstart. Basically this is what I did: made a copy of - ...
0
votes
1answer
582 views

Responsive bootstrap grid with 6 columns of equal heights

In the front page of our website, I would like to list down groups led by researchers and each group is having a thumbnail picture and a title where the picture is of fixed width/height but, the title ...
0
votes
0answers
20 views

How can i theme cart page from TABLE to DIV format

I am using drupal 7 with ubercart 3. I am not able to change the theme of CART page. By default it is picking theming of items from tapir table. I want to have a cart page with DIV elements and not ...
0
votes
0answers
29 views

Theme for Form API field with custom template

I am unsure how to make variables available to my custom template for a Form API field. So far I have got the below: Define form: /** * Defines search form */ function ...