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
11 views

Load .js only if block is loaded

Yes, something like that. If block and it's content are loaded in the page (so I guess detect by ID or something) it would load the .js, but if block is not loaded, it wouldn't load the .js. I need ...
0
votes
1answer
22 views

Using another html.tpl.php for specific page

I have googled this alot but none of the suggestions I found works for me. I want to use another html.tpl.php template for a specific page, preferably matched with the url-string to that page, but ...
0
votes
1answer
15 views

Deoes any email is send when i open drupal webpage first time?

I heve a not nice "error/message" from time to time on the bottom of the page... It is sth like this: SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "220 poczta1.www.www.pl ...
1
vote
0answers
15 views

Dynamic custom template for taxonomy terms

I want to use dynamic custom templates for taxonomy terms. I have created a vocabulory myvocab, Now in this vocabulory i have created an extra field of template in taxonomies that i want to use for ...
-1
votes
1answer
45 views

Webform-mail.tpl.php : custom HTML email template is sometimes received with encrypted characters

Hello everybody, I am customizing webform email template in webform-mail-[nodeId].tpl.php but face a weird issue. I have already tried many things to solve it and decided now to step forward here and ...
0
votes
0answers
18 views

Changing region postition on a drupal theme

I'm quite a novice in drupal but quite advanced. i'm trying since last 3 weeks to achieve a "Region change" on the theme, i used for my site: "Business Responsive Theme". I've already tried-out ...
0
votes
1answer
14 views

File upload functionality on node display page

I wants to provide upload button on node display page. By click button able to upload files. For this i am doing change in node.tpl file. <?php //code added if($node->title=='Course ...
0
votes
2answers
17 views

Drupal 7 Theme [Business] not pulling in to non-front pages

I am programming five custom modules for a client in Drupal 7. Tey have, well, HAD, a company in India doing their front-end work. Something went wrong and the India company stopped responding and ...
0
votes
0answers
9 views

Theming multi step node form issue [on hold]

I am working on multi step node form and I am stuck in a place where I am not finding any solution. I have used multi step node form but how do i fit the html of five different steps in one tpl file ? ...
0
votes
2answers
23 views

How to theme a blocktitle of a view?

As i am still developing some basic php skills: I want to theme the title of my views-block slightly (just color and fontweight) I have created a views-view--my-view--block-1.tpl.php and pasted the ...
0
votes
1answer
14 views

what is the default file template in drupal when you set your own theme?

What is the default template in drupal when you set your own template and you don't have page.tpl.php ?? where does the html beeing rendered from?
0
votes
0answers
9 views

Program a pre-set value for a form block?

I have a simple custom module that creates a form block. We use this block to post content into a panel without the use of the PHP module. We wanted to know if it was possible for us to set a ...
0
votes
1answer
20 views

Drupal 7 Views templates - how to add a class to a row based on the value of a field in that row

I have a view with a page display showing a list of events. I'd like to add a class to the rows of those events that are in the past. The problem I have is that views-view-list.tpl.php doesn't have ...
0
votes
1answer
24 views

custom generate pdf with the header displaying only in the first page

I'm using print module to generate pdf files from the drupal content. Here I use tcpdf library. The pdf files are working fine. But I want to customize the pdf files, here I want to display header in ...
0
votes
1answer
37 views

How to render videos url in a template page using Video Embed field?

I have done some research on how I can render on a node .tpl page a youtube video, but couldn't find a solution. The module I am using is Video Embed field and Drupal version is Drupal 7. When doing ...
0
votes
1answer
15 views

HOOK_node_submit funtion not working in custom module

I recently upgraded a drupal installation from 7.15 to 7.31. All seemed to be working well but as I went through testing features I noticed one of the template forms for content submission wasnt ...
-1
votes
1answer
19 views

How to get list of contents of a particular content type programattically [closed]

How can i get a list of contents of a particular content type for example "Basic Page". I want basic page title list in a drop down. I want list of nodes in a drop down and while selecting each will ...
0
votes
2answers
31 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
24 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
14 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
21 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
24 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
23 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' ...
0
votes
1answer
47 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
33 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
37 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
53 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
55 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
37 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
27 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
33 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
38 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
22 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
24 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
16 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
29 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
27 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
31 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
23 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
88 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
29 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
17 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
31 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
27 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
33 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
23 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
60 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
30 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
32 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 ...