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
0answers
15 views

Cannot replace html.tpl.php with new template in a single module

I am creating a module to handle the reformatting of pages for printing in D7. The structure of the URL is: /print/{nid} I need to use a separate template than html.tpl.php as I have to get rid of ...
0
votes
1answer
11 views

Add CSS class to <form> element using webform and template file

I have an existing webform in Drupal 7 which I am trying to theme. So far I managed to add CSS classes, placeholders, prefix, suffix,.. to form elements (fields) but not to the actual ...
-1
votes
0answers
24 views

Template for interview questions site [closed]

Friends, I am crating a Interview Questions and Answers site, It will have collection of Bank Interview Questions and Technical Interview Questions with answers. But I can't get correct template for ...
1
vote
1answer
26 views

Which is the most performant way of overriding views field output

This question sureley can only be answered by people with some drupal experience. As I have quite different and complex views, which I need to control totally, I need to come to a design decision. ...
-1
votes
0answers
21 views

override another function

I want to override some function from module. How can I do this ? As I know it possible to override in template. But I didn't understand how it. for instance I want to overrider function from better ...
0
votes
0answers
23 views

Custom widget for field collection with multiple values

I need to create a custom field widget for a field collection. My field collection is called Article and has the fields "Title", "Summary" and "Description". My content type has the field of type ...
0
votes
0answers
5 views

Template Hierarchy for Panels

In Drupal, the template system has hierarchies for different parts of the system. I'll include what I've found so far as a reference; For pages: page-node-edit.tpl.php page-node-1.tpl.php ...
0
votes
0answers
33 views

Customize “My account” and “Logout” Links in my subtheme with CSS button problem

So I'm trying to shape "My Account" and "logout" links in to my omega 3 subtheme with this css: { -webkit-appearance: none; -moz-border-radius: 11px; -webkit-border-radius: 11px; ...
0
votes
2answers
32 views

How to add custom theme region only to a custom module's template(and not page.tpl)

I want to define a region, but the problem is that for different pages, the position of the region would be slightly different. So I can not put the region in page.tpl and for different custom modules ...
0
votes
2answers
24 views

Drupal - user registration form- theming

I need to do theming of user registration form I m doing in this way Module file function mymodule_form_user_register_form_alter(&$form, &$form_state, $form_id) { ...
0
votes
1answer
20 views

View mode theme name priority

I am on Drupal 7. I have a theme set for view mode 'Teaser'. The theme name for this is named like this: node--teaser.tpl.php. So far so good. Then I created content type 'something' and I would ...
0
votes
1answer
23 views

Don't show a field if it is not filled in

What is the best way to don't show up a field if it is not filled in. I have a content-type for the homepage: (Machine name: home_pagina). There is a field for my client to give a warning-message if ...
-2
votes
0answers
25 views

Theme integration in drupal 7

I have converted one HTML template in to the Drupal 7 theme. Everything is working perfect. But I want to know that After setting that converted theme in to default, install new theme install new ...
0
votes
1answer
27 views

Theming a node teaser to use its content types's custom tpl.php

I have a page--contenttype.tpl.php in a custom theme that displays a node exactly how I want it to display on its own node page. How do I make it so that the teaser for the node of that type displays ...
-1
votes
0answers
8 views

Display a cck field depending on node selected tid

i need to display a cck field with a condition on a tid used to tag the displayed node. usually i use this: <?php if ($node->field_complement_info_formation[0]['view']): ?> ...
0
votes
1answer
15 views

How can I embed view results right in the content region as if it's part of the content?

I have a node type with some entity reference fields that displays teasers. I also have a block view that takes a URL component to display related nodes that are not referenced on the node's entity ...
0
votes
1answer
23 views

How to theme the separate page for editing profiles provided by Profile2

I'm using D7. I'd like to theme the separate page for editing profiles provided by Profile2 module(whose URL is MYWEBSITE.com/profile-MYPROFILE/[uid]/edit). I searched and found the way that somebody ...
0
votes
2answers
19 views

Replace Views prev/next pagination with image arrows

Is there a template that would allow me to replace Views' prev/next text pagination with image arrows instead? I could do it with CSS but I don't feel that is ultimately an optimal solution.
-1
votes
1answer
20 views

How to add a new element in drupal 7 feed view

I have created a simple feed with drupal 7 views and i want to add some more elements. currently it supports title, description, link, creator and pubdate. I DON'T want to use any other module. Thanks ...
1
vote
0answers
24 views

Display a node form in default theme for admin

I think this question has been asked many times, but I am sorry not to find a working solution. May be I am doing something wrong. I want to display a specific node form in my default custom theme and ...
0
votes
2answers
33 views

My Theme Is Lost [closed]

My theme was working earlier, now when I go to the site, it just shows a basic homepage without the theme. I looked at the files and they are all there including the page.tpl.php file. Not sure what ...
-2
votes
2answers
33 views

How to call hook in template.php after login from any user in drupal 7?

I am using below code to get the user login gender information & store in SESSION, I want to call below code after login, I already try this hook function bartik_user_login(&$edit, $account) ...
-1
votes
0answers
5 views

Disable external bootstrap from bootstrap sub-theme

I want disable external link http://netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css from bootstrap subtheme. Any idea Thanks
0
votes
1answer
19 views

add class to book navigation block links

I use navigation block generated by block module. Tha block is displayes on all pages that belongs to book. I would like to add custom class to all links inside navigation block. I found that the ...
0
votes
1answer
24 views

Image does not load

I bought a theme from themebrain site and installed it. Some of the images for the theme are stored inside /sites/default/files/customs/. So in image tags, I refer to the source location as ...
0
votes
0answers
9 views

sub-menu not loading in custom menu

<?php $menu_name = 'menu-menu-secondary-menu'; if (count(menu_navigation_links($menu_name))): ?> <?php print theme('links', array('links' => menu_navigation_links($menu_name), ...
0
votes
0answers
23 views

How to Render items from $view->result in template

So in a certain template i file is use the following code to render my images: <?php $results = $view->result[0]->field_field_images; ?> <?php foreach ($results as $delta => $item): ...
0
votes
1answer
24 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
39 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
2answers
19 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
24 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
91 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 ...
1
vote
0answers
20 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
30 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
44 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
8 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
17 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 ...
0
votes
2answers
33 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
18 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
33 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
31 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
27 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
19 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
78 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
33 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
23 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
27 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
16 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
23 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 ...