Theming is about the development, adaption and configuration of "themes". A "theme" in Drupal is a set of files containing PHP, templates, Javascript and CSS that in concert provides a certain appearance of a site, and that clearly separates layout and styling of a Drupal site from content and ...

learn more… | top users | synonyms (2)

0
votes
0answers
19 views

What drupal theme is this site using? [on hold]

I would love to know what theme are this website using: http://comunitelia.com/ Does anyone knows that? Thanks!
0
votes
0answers
18 views

Using twig extensions in Drupal 7

I would like to be able to use some custom PHP code that generates an SVG image in my .tpl.twig file. Since I can't write PHP in a twig template I figured I should try and make a twig extension ...
0
votes
0answers
25 views

Best way to create a custom page section?

I'm looking to create a triptych set of infographics/buttons below the fold of my frontpage. Here's an example for those that don't know what I mean. http://www.dia.org.au/ (The bit highlighted in ...
2
votes
1answer
100 views

Why does $page['content']['#attached']['js'] works , while $page['#attached']['js'] does not?

Trying to attach js by means of #attached by means of hook_page_alter (see http://drupal.stackexchange.com/questions/171918/how-to-add-javascript-with-attached-and-hook-page-alter), I found that the ...
0
votes
0answers
6 views

Is it possible to get the last number of a views pager to display after and before the elipses?

I'm trying to create a custom pager similar to the Amazon pager: < 1 2 3 4 ... 82 > and after a certain point: < 1 ... 7 8 9 10 ... 82 > But, I cant figure out how to display the ...
0
votes
1answer
14 views

I only want to modify one tpl.php for a theme, do I need to copy the base theme?

I only need to have one tpl.php added to a theme,but the theme I am using is not my own. If I still want to have this theme as my "base" and then create my own theme with the tpl.php using a theme ...
-8
votes
0answers
24 views

contest website using drupal [on hold]

Thanks for the support I need to build a contest website using drupal ,I’m not a web developer so I faced a lot of problems ,and I think I need a drupal developer, contest have a content type, I can ...
0
votes
1answer
43 views

add js by #attached - hook_page_alter in theme's template.php [duplicate]

I am trying to add js by #attached, as I understand it's better from a caching perspective then drupal_add_js(). I try to use hook_page_alter() in template.php. I have the following code: ...
1
vote
1answer
17 views

Send email from template file

I am making a return request page for my website the user will enter in his/her information about their order and it will pull up a list of their order. The information is pulled from the views then ...
0
votes
2answers
51 views

Panels creates different pane number for any mini-panel inside a panel-node

It's kind of hard to explain this but I'll try in a pragmatic example: You have a mini-panel in a block, somewhere around a panel-node (say node/1, your homepage): in the first panel-node (your ...
0
votes
0answers
14 views

Access denied is showing before login

I'm using the Darland theme and after returning to the login page on logout, it's showing an ugly access denied message. Also, it's displaying a register link next to login. How can I remove these 2 ...
0
votes
0answers
11 views

Ways of setting new value to a custom field in template.php file

I'm trying to set a field's value of a node in template.php file of a theme if the field value is empty but the problem is that when the field value is empty, I cannot make any field function work in ...
0
votes
1answer
17 views

hook_preprocess_views_view not loading view when records are empty

I am trying to add some css and js files using the hook_preprocess_views_view_unformatted Hook in template.php Here is my code : function mytheme_preprocess_views_view_unformatted(&$vars) { ...
2
votes
1answer
36 views

Can I add my own if statement to node.tpl to test if field groups are null?

I have a content type with 4 different field-groups utilizing the Field Group module. I want to test to see if those groups are empty and render them and some additional HTML if they are NOT empty, ...
0
votes
0answers
13 views

Mega Menu in Adaptive theme feeling like mobile

So, what went wrong - as I was changing my Zen template to similar Adaptive template - my Mega Menu on Adaptive theme is grouping all items left, in a narrow space, like on a mobile screen, even I am ...
4
votes
1answer
41 views

How to replace 'reply' link with button in Drupal 7?

I want to replace the 'reply' link with button. As an intermediate solution I styled the link as a button with CSS, but I want it to be a real html 'button' element. The reason is, I do not want the ...
1
vote
1answer
11 views

How to print node's timestamp in computed field

I want to save my node's submission timestamp in a computed field. I know that I should use date_format function, but idk how it works. How can I do that? thanks.
0
votes
0answers
8 views

Why drupal_find_theme_templates return empty array?

I trying to add templates to my module (for Drupal 7) with next code: function transfer_theme_registry_alter(&$theme_registry) { $module_path = drupal_get_path('module', 'transfer'); ...
0
votes
1answer
18 views

Show title of referenced node in node template

I'm working on a node template for my content types and use Entity reference to reference my content with each other. THe machine name of my entity reference field is og_group_ref. In my node template ...
0
votes
1answer
45 views

Is there an official/recommended way to organize CSS files for a responsive theme?

While creating a responsive theme (eg. a bootstrap based sub-theme) is there an official/recommended way to organize CSS files for different media queries? In general I put everything into one CSS ...
0
votes
2answers
39 views

Drupal 7 theme for specific page

I have one page mortgages/%/view that needs to have it's own custom theme. I have the HTML created and it's ready to go. In my 'mortgage' module I have a mortgage.tpl.php file with this HTML in it. ...
0
votes
1answer
12 views

How to build a specific administrable page layout?

I have a HTML layout provided from a template and I need to make an administrative page to fill the template with a content. The page layout looks like this: I want to have an admin page where can ...
-1
votes
0answers
25 views

'Page Not Found' in title bar after creating custom front page page--front.tpl.php

I have created a front page for the site with total html on "page--front.tpl.php", and I have also called few views and blocks (dynamic on my site's front-page). After that it is showing the meta ...
0
votes
0answers
27 views

Missing Main Page Content Block in Blocks List

I have the region for Main page content in my theme.info file which is regions[content] = Content. But still, in Blocks list, there is no Main page content block. This is causing me problems. Can i ...
0
votes
0answers
9 views

Drupal + DKAN: override dkan_user_menu default view

I'm using Drupal with DKAN and I don't know how to override the standard block__dkan_sitewide__dkan_sitewide_user_menu appearance. Can you help me?
1
vote
1answer
29 views

Overriding field.html.twig in my module

I'm writing a field formatter and I need to override the default field formatting. I've already implemented themes for the items itself, but I can't get my theme to work for the field container. I've ...
0
votes
0answers
16 views

Which method would render the CSS quicker? To load the CSS files conditionally via the template.php or as nested elements in a SASS file?

Which method would render the CSS quicker? and thus speed up page load time? To load the CSS conditionally via the template.php or as nested elements in a SASS file? I’m using SASS and have over 30 ...
0
votes
2answers
17 views

format_date not working as expected

I'm using Drupal 7.38 and I'm trying to print the creation date of a node in 3 separate divs, to be able to format it appart, so I created the following on the node.tpl.php: <div ...
0
votes
1answer
27 views

How to programmatically set the color scheme for a theme?

Is there a way to programmatically change the color scheme, set by the color module, for a certain theme in Drupal 6 (in PHP or using drush)? For example, I can change Garland's color scheme from the ...
0
votes
1answer
20 views

When creating a Panel Page and selecting a layout, the page layout is not overidden

I'm using Omega theme and have built 4 custom layouts for my sub-theme. If I activate layouts and select one in the admin my Omega sub-theme, everything is fine. Now I want to use those layouts as ...
0
votes
1answer
14 views

add a class to page depending on order total (Drupal Commerce)?

I want to add a class to a page when the order total reaches a certain level.
0
votes
1answer
35 views

How to set attribute for checkbox field

I want to add the attribute data-toggle="toggle" to a checkbox field. I thought I could use the hook theme_checkbox which is: function theme_checkbox($variables) { $element = $variables ...
1
vote
2answers
27 views

How to overwrite /modules/user/user.module text?

I am trying to override the text outputted on the user login block: "A valid e-mail address. All e-mails from the system will be sent to this address. The e-mail address is not made public and will ...
0
votes
0answers
30 views

Problem getting Owl or Bootstrap carousel work inside colorbox

View Bootstrap carousel works fine on the node page, but through EVA module the carousel block is inserted in display suite for colorbox. When click on thumbnail, colorbox appears. The bootstrap ...
0
votes
3answers
26 views

How to find which templates are affecting a display?

spending hours dealing with form_alter , finally realized that a tpl.php file is overriding the output !!! now the question is what are the ways to understand which template files(or functions) ...
1
vote
2answers
39 views

How to remove markup from file field in drupal 7

I have added a file field in views and when displaying it has some markup like this <div id="file-218" class="file file-image file-image-jpeg contextual-links-region"> <a href="#"> ...
1
vote
1answer
28 views

How to fix the useless 'favicon.ico page not found' log message? [duplicate]

Why is Drupal looking for it in the root dir in first place? The favicon is always placed inside theme at sites/all/themes/mytheme/, but it's looking for favicon.ico inside home / dir. When browsing ...
0
votes
0answers
14 views

Node Template Entity Reference Fields

I have a content type with an entity reference to another content type. When templating node.tpl.php I get the Target ID of the entity reference, but i don't get any of the fields associated with it. ...
1
vote
1answer
12 views

Prevent loading certain script set in .info file in Drupal 6

I have a theme with several template files using <?php print $scripts ?> to load a list of scripts set in the theme's .info file. What's the best way in Drupal 6 to exclude one of the scripts ...
0
votes
1answer
30 views

footer block through custom module and fetch node image field in Drupal 7

I want to create footer block through custom module and want to add five images through node.Five images should change one by one after one hour. Can anybody tell me how to do this ? <?php ...
0
votes
1answer
9 views

Naming Structure for Create Node Page template?

I need to create a custom template for: /node/add/node It's currently using: page--node.tpl.php What's the file naming convention for this?
0
votes
1answer
19 views

Returning code in views search tpl but ONLY if user clicked 'search' button and results were returned

I have a Views-based search page on my site. I've created a views-view-search--tpl.php file to customize the order of elements on the page. I have a specific block I'd like to return but ONLY if a ...
0
votes
1answer
18 views

Unable to render posted date in node--article.tpl.php

I'm attempting to render the posted date of an article in a specific way. I understand that there is a Display author and date information. Checkbox in the content type editor. However I don't ...
0
votes
3answers
41 views

placeholder on searchbox

here is my template.php code: function sizin_preprocess_page(&$variables){ $search_box = drupal_render(drupal_get_form('search_form')); $variables['search_box'] = $search_box; } ...
2
votes
3answers
125 views

Using Panels for Layout versus custom .tpl files

I'm working through some layouts that aren't entirely complex but are definitely outside of the core Drupal provides. It really does seem like there a 20 ways to do one thing in Drupal. My question ...
0
votes
0answers
25 views

Managed_file images disappearing after form resubmission

I'm building a site using the Nexus theme, and wanted to give users the ability to change the slideshow images using Drupal rather than using the default FTP (which is an odd way to make people update ...
0
votes
0answers
13 views

Module to view theme folder through drupal 7 interface

I am working on this site http://talikulam.com/. I need to change the slideshow images. Theme setting allowing to change caption and description only. To change the images I need to go the images ...
0
votes
0answers
5 views

managed_field from theme in Domain Access

I created custom theme with some additional settings in it. Everything works fine when I change theme settings globally, but when I try to remove managed_file field's file (image) in the theme ...
1
vote
1answer
49 views

load node author uid to be used as contextual link inside template.php D7

I need to load node author uid to be used as part of a href link inside template.php, I managed to add a contextual link according to this post, and call it from node.tpl.php but I can't access node ...
0
votes
4answers
45 views

How to display the form fields of content type in a table using custom template file?

I have created a content type Article including the fields Field 1, Field 2, Field 3 ...... All these fields have multiple values. I also created the custom template for this content type. Now I ...