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
2answers
17 views

Making content and functions maintainable in the long run

I've been playing around with drupal for a couple of weeks now and one subsisting doubt remains in my mind: what is the correct, 'Drupal' way to add your custom content? For basic text and links, a ...
0
votes
1answer
13 views

Overwrite login page

I'm trying to overwrite the FULL LOGIN PAGE, not only the login form! I've tried this function your_themename_theme() { $items = array(); // create custom user-login.tpl.php ...
0
votes
1answer
20 views

Content type aware in sidebar template

I've added some image and link content to region-sidebar.tpl.php before it executes the print $content. All good, except now the client wants the images and links specific to content type. (I can't do ...
0
votes
1answer
21 views

Access page variables in form template

I have a customised form template 'user-profile-edit.tpl.php' and i'm trying to add some custom variables so I can get a block of dynamic content (users current friends / requests etc) to display in ...
0
votes
0answers
46 views

How to customize registration ,login and forgot password pages in bootstrap theme?

I want to customize registration, login and forgot password pages, theming and changing the position of submit buttton and including social connect, i have used this code function ...
0
votes
1answer
28 views

Fatal error when altering the user login form

i want to customize login block in a fancy login box. i used this code in a template.php function bootstrap_form_user_login_block_alter(&$form, &$form_state, $form_id) { ...
0
votes
0answers
7 views

How to print a link to the ajax-deliverable path created using hook_menu?

I have created a ajax-deliverable path using hook_menu(). Here is the code: function custom_module_menu() { $items = array(); $items['get_mempages'] = array( 'page callback' => ...
0
votes
0answers
21 views

How to get list of templates for the active theme?

I am creating UI that will allow users to edit the active theme's template files(something like Wordpress does). For this I need to get the list of all templates from the system and to know which ...
0
votes
0answers
10 views

Custom Module: Programmatically Printing Field from Custom Form - Question

I set up a tiny custom module giving me a page of editable text fields that I can pull later. There is one part I saw with printing the fields in the page.tpl page, but don't understand how it ...
1
vote
0answers
23 views

Drupal Calendar - How to change week layout?

I need to change the calendar week view, to be more user friendly. Please check this screenshot, I am explaining the goal to reach on it: https://www.diigo.com/item/image/4otf9/eb3r The website has ...
1
vote
0answers
23 views

Coding standards for custom theme functions regarding arrays passed as variables?

I have created a custom theme function and almost all the data that I pass via variables is in one big array. I have documented the keys of the array fairly well. In my first pass at the module I ...
3
votes
1answer
24 views

How to override jquery update preprocess page

The objective is to exclude certain javascript files from some sections of the website. I exclude javascript and css files in this way in the template.php file of the theme: function ...
2
votes
1answer
24 views

How to theme output of node_view_multiple()?

If I want to theme the output of node_view_multiple() I can just set the #theme element of the renderable array generated by the node_view_multiple() function. But, what if I'm not the one that ...
0
votes
1answer
16 views

altering them for node edit page not working

I got the following to work by adding it to the admin template.php file. But I am not having any luck changing the one edit form to use boostrap_subtheme vs the default admin theme. Any advice with ...
0
votes
1answer
15 views

Custom 404 page in a theme doesn't work as expected,

I want to use a custom 404 page, I also have a theme installed. This is what I did: Go to Content, create a Node, I got path: node/28 Go to System->Site Information->Error Pages-> 404 page, I enter ...
0
votes
0answers
10 views

Customise Views RSS output

I am using Views to create a custom RSS feed. My view has several fields, and I want to wrap these fields in RSS tags to customise the output of the feed. I have created an RSS style view. In the ...
1
vote
2answers
85 views

How do I customise the header and footer using a page template for a particular content type?

I have a content type. I want to customise the node pages for this content type, I've used node--[content-type].tpl.php but I need to use a page template to customise the header and footer and ...
0
votes
1answer
21 views

how to customize user profile page

I want to customize user profile page as per my own way. I have created one file named as page--user.tpl.php, but after making changes in this file during user logged in, the changes reflects on sign ...
0
votes
0answers
27 views

How can I override panels_everywhere with a tpl?

I have a site which use panels_everywhere but I want to create a tpl file which contains only the node without any pane for an iframe purpose. I want to make a condition that if the domain alias is ...
0
votes
3answers
44 views

can not override block when block put into panel

I create a subtheme base on bartik theme. Then I create a panel, and put the user login block to the panel. I want to change some text in the default user login from. I find the theme suggestion ...
0
votes
1answer
38 views

How to create s separate theme for custom page

How to create a custom theme in drupal 7 for a page I want to create template for my example/123 page
0
votes
2answers
22 views

Do purchased themes need to be fully built from the ground up? [closed]

Really naïve newbie question.... I am brand new to Drupal after working in Wordpress for quite a while. We bought a custom agricultural theme for $75 - it looked perfect for my project at work. The ...
0
votes
0answers
15 views

change theme of user-role using ThemeKey for all pages

I've installed ThemeKey module in my website. Now, I've assigned administrative theme to user-role: EDITOR. So, when the user having this role, logs in, he get an administrative interface. It works ...
0
votes
0answers
21 views

Theme and sub theme template.php files appear to be ignored

My company purchased a theme, "Porto" which also has a subtheme, "Porto Sub". Porto had a template.php file, Porto Sub, did not. This is all in Drupal 7. I wanted to make a change to the ...
-2
votes
0answers
13 views

Commerce attribute widget labels inside select list [on hold]

By default labels are either inline or above.
1
vote
2answers
31 views

Display image field from nid

I'm trying to print the image field from a node using the nid in the url. $nid = $_GET['field_item_request']; Is there a specific way to do this?
0
votes
1answer
67 views

Node template.tpl.php for custom view mode?

I tried this http://www.fredparke.com/blog/using-custom-template-files-different-display-modes-drupal-7, but doesn't work, gives errors and tried this How to provide template for particular view mode? ...
0
votes
1answer
27 views

Test if Anonymous users can sign up for a new account

In a Drupal theme, how can you test if Anonymous users are able to sign up for a new account? Background: I am theming my user login form according to this tutorial. On my themed user loser login ...
0
votes
0answers
14 views

mytheme_links__system_main_menu($variables) function not being called

I have created a custom template and i don not want the default menu structure of drupal 7.So I thought of creating a custom structure for this.In my custom theme page.tpl page i have called the the ...
1
vote
2answers
33 views

custom theme hook not found

In my theme's template.php file, I defined a new theme hook using hook_theme(): function MYTHEME_theme() { $hooks = array( 'custombody' => array( 'template' => 'custombody', ...
0
votes
1answer
20 views

Calling menu in a certain way from page.tpl.php

My menu structure looks like the structure in the left part of the image. I want the output to look like the right part of the image when I'm in the 'oranges' page for example. This works great if ...
0
votes
1answer
66 views

Undefined variable: _SESSION in template.php

I use this code (not mine, I do not know how to code) to disable Maintenance mode message on front-page while developing a site, it's really annoying when it's flashing all the time in the middle of ...
0
votes
0answers
10 views

How to make user created nodes show on profile page as text links

:) I have created a free membership site and users can post nodes to tell personal stories. I’m trying to figure out how to make user created nodes show as text links on their own profile page, so ...
0
votes
2answers
54 views

Custom template file for taxonomy term in drupal 7

I need to create only one tpl.php file for all taxonomy terms in my website. I know taxonomy_term_page.tpl.php will do the required function in Drupal6. For drupal 7 I had override the ...
0
votes
2answers
22 views

How to conditionally render fields with a different formatter

I have a content type with two fields one called display which is a simple list and the other is an entityreference field. I would like to change how the entity reference field is rendered depending ...
-2
votes
4answers
140 views

Set view header full width (css child conflict)

I created a drupal website using the foundation theme. At the page level the content is put inside a container. Now I created a view and I want the header of this view (using an entity rendered ...
0
votes
1answer
26 views

Modify template.php for custom html

It was suggested the below script in template.php might work to assist in creating a modified html page. I tried it but broke my site. Do I need to copy just the code minus the php brackets? Use my ...
0
votes
2answers
26 views

How do I make a block title output as a link?

I have a couple of Views block displays that are being shown inside of Panels content panes. I am trying to get the block titles to be links to overview (static) pages. The devel_themer module ...
0
votes
2answers
58 views

How to tell Drupal to use tpl file from my module?

I have a custom module and placed comment.tpl.php here: /sites/all/modules/mymodule/comment.tpl.php But Drupal is not looking for that file in my custom module directory. How can i make it work?
0
votes
2answers
16 views

Multi template files for a content type

is it possible to use multiple templates select for a content type. I am thinking of having a select_list which will be shown while adding the content and you can choose how your page will look like, ...
0
votes
0answers
20 views

Display Image Path in Template

How do I output the path of an image inside the field.tpl? I want to modify field--field_portductimage--produkte.tpl.php to get an output like this: <a href="trainer1big.jpg" class="MagicZoomPlus" ...
1
vote
1answer
48 views

global static variable to be accessed in comment.tpl.php, node.tpl.php and in page.tpl.php

I wanted to show some ads inside the content (node, comments) and body. I decided to add them using the template by adding some lines to comment.tpl.php, node.tpl.php and page.tpl.php for example in ...
0
votes
0answers
28 views

index in multi value fields in Drupal

I've created a content type called Event which has a date field (field_date) that accepts multiple values using Date Repeat API of the Calendar module. I also created two different blocks using Views ...
0
votes
1answer
50 views

How to create a total blank page without any header and footer in Drupal 6?

I am using Drupal 6 and I am stuck in a situation where I need to create a blank page without any header footer which comes as a part of your theme when you create a new page in Drupal. I have ...
0
votes
1answer
24 views

What's the usual practice for providing several CMS-editable content in pages, particularly the home page?

I need to create a home page with several content areas containing text and images (e.g. welcome text, welcome image on a different section of the same page, a second welcome text on a different ...
0
votes
1answer
27 views

Theme UberCart catalog page to use custom html

Working with Ubercart 3.x on Drupal 7. I want to theme the /catalog/1 page, where it shows my products. I want to use completely custom html that has divs nested with tables nested with divs. I ...
0
votes
1answer
39 views

Styling “all day event” In Calander module

I am on Drupal 7. Everything works fine in Calendar module, except when I add the all day event then the styling is changed, I wanted the same styling for all the events. Sorry if the question is too ...
1
vote
1answer
45 views

Wrong text being shown in a template file

When I add text in Hebrew inside html.tpl.php, it shows me strange characters instead of the ones I am expecting. How can I fix this?
1
vote
1answer
77 views

Drupal add class to body if page is unpublished [duplicate]

I would like to be able to add an unpublished class to the body tag of a node (for both its main view and edit view) if the node has been unpublished. How can I do this? Steps I have taken: 1) ...
1
vote
1answer
46 views

Is there a way to avoid implementing a logic in the view template?

Some where I have read that we should use views template xxxxx.tpl.php file to not implement complex logic. I want to show a search results message to the user. The message is not made of mere row ...