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

My theme is automatically disabled!

My Drupal website has a sub-domain. there is a theme that is in the sub-domain folder. the settings.php in the sub-domain folder is same as the one that is in the /default folder so they both display ...
0
votes
1answer
17 views

Different front page template for different domains

I have Drupal 7 installation with the Domain Access module. I need to have different page--front.tpl.php templates for some of the subdomains, for example: www.example.com should have one type of ...
0
votes
0answers
7 views

Subscriptions template: test for imagefield

I send digest newsletters with the subscription module (using the templates that comes with the module), sometimes containing a small image before the teasertext (positioned with tables/row/column). ...
0
votes
1answer
14 views

How to use a separate file for IE responsive.css for version 10/11 in Drupal

I am setting responsive design for only IE (Internet Explorer) in Drupal 7. here is my code its for work lower then IE 10 not for IE 10/11 function bootstrap_preprocess_html(&$variables){ ...
1
vote
2answers
70 views

Print current base language in tpl.php

I statically linked an anchor to my /cart page on page.tpl.php, but since it's a multi language website, when I'm on http://localhost/fr it still goes to http://localhost/cart instead of ...
-2
votes
0answers
26 views

The question about template [closed]

I have a question about template. Did you used the template,and name is "evolve"? Thanks~
0
votes
0answers
10 views

How to store a variable array at THEME_preprocess_page to use in a page.tpl? [closed]

In use to have this menu code working well in page.tpl.php but I learned it is best practice to do the heavy lifting on the template.php or in the case of omega 4 sub theme, you place all your ...
1
vote
0answers
15 views

How to asynchronously execute/render a view using views_embed_view in a template file?

I have the latest Drupal 7 running on a Centos OS. I have a content type named publications which is composed of lets say around 20 fields (i.e. publication title, name, doi, authors, keywords, ...
0
votes
2answers
23 views

Link tags in template file auto closing.

I’m having an issue wrapping a link around some output in a template file. I have the right template file; and I can put text like ‘start here’ and ‘end here’ and it prints out where I want the ‘a ...
0
votes
3answers
36 views

How to use a separate file for IE responsive.css in Drupal

I am setting responsive design for only IE (Internet Explorer) in Drupal 7. Is there any method or solution this file is working with only IE not for Firefox and Chrome?
0
votes
0answers
4 views

How to get the parent title of a custom menu active item

When using a custom menu I am able to use the menu_block module to layout different combinations of parent -> child levels of the menu in various areas of my templates which is great, but now I also ...
0
votes
1answer
12 views

How to include Vertical menu in the page template

I am trying to build a theme for my own use in Drupal 7. My main menu should be vertical in the left side bar. No dropdown, only one level. I have customized it in my styles.css as #vertical-menu but ...
-1
votes
0answers
20 views

form to use html5 elements only on mobile [closed]

My webform uses regular fields for a desktop which is fine. i have a hook written to change the elements to HTML5 elements on mobile devices only. here is the code. . . . // function ...
0
votes
2answers
25 views

Custom module template override not loaded

Hi I am desperetly trying to override the template of my D7 custom module's block here is my code : function lnr_block_info() { $menus = menu_get_menus(); ...
0
votes
1answer
15 views

add custom header in term listing tpl page

I want to add some header information in header of term listing. This is my requirement. I achieve the listing of terms (store) with the help of term-taxonomy--store.tpl.php template but how to add ...
1
vote
1answer
39 views

Can I include other template into template?

I override template in my custom theme na (templates/block--[module]--[delta].tpl.php) and I would like to include other template (from the same directory) into this. Can I do it and how? Directory ...
0
votes
2answers
29 views

Demonstrate block regions

I have two templates in my theme called page--front.tpl.php and page.tpl.php. When I click at the link "Demonstrate block regions" (Structure/Block) it shows the page.tpl.php template. Is it possibly ...
0
votes
2answers
30 views

Creating new template for new page

In drupal 7, I created a content type called page and set the url to /about. If I check the source code I see <link rel="canonical" href="/website/about"> and <link rel="shortlink" ...
1
vote
2answers
21 views

add variable to process_page($vars) in form function

Is there an option to change $vars array in form function? I would like to pass some variables to page template in form creation function .. If not, what are other options to influence page.tpl from ...
0
votes
1answer
17 views

Theming Views Display

Can I use Views templates to theme the row style output of a specific display in my view so it doesn't affect the other displays I created? If so, how?
2
votes
2answers
60 views

Drupal 7 website layout/styling breaks all a sudden (random), how to debug? there are no logs

One of my websites running Drupal 7 goes out of format, most often when user login. This is how it should be After running out of format this how it looks This may be a CSS issue, it may be a ...
0
votes
1answer
30 views

How to display a view without using a page template - drupal 7

So on a drupal site I am working on the client has a page where they have a view without a page template applied to it, and now the client wants to change the url of that page. As soon as I change the ...
0
votes
1answer
16 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
25 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
20 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
60 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
22 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
21 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
22 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
2answers
24 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
16 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
10 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
30 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
28 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
57 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
38 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
25 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
30 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
27 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
24 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
50 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
34 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
38 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
76 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
56 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
38 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.