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
1answer
4 views

Theming a Fieldable Panel Pane — should I define a View Mode?

I added a Link field to Panopoly's Image fieldable panel pane, but I need to theme it so the link is silently wrapped around the image rather than displayed textually underneath. It also needs to be ...
0
votes
0answers
13 views

Add a class to the first li.pager-item for Views pager?

How can I add a class to the first li.pager-item for for a Views pager? I know that I need to make a theme override of theme_pager ...
0
votes
2answers
16 views

Menu links at the corners of the screen

Used omega theme and stumped at menu part. Top right - Home Top Left - Work Bottom Left - Contact Bottom Right - FAQ Tried to set 2 menus: top and bottom in menu zone and then set id to each links ...
2
votes
1answer
54 views

Site name div selectively in an h1 tag, affects markup and css

So, the position of my site title and logo have been moving around on different pages. I was pulling my hair out until I compared the html outputs of the pages where the logo moves and it appears ...
0
votes
1answer
36 views

Drupal 8 different layouts in theme

How do i create theme that has different regions for every node? For example i want my frontpage to have different regions than some other page that represents content.
2
votes
1answer
25 views

Which file should my style be in

I'm putting this question in the Drupal forum rather than a CSS forum as I don't know if I just have a CSS issue or if the issue is more Drupal, maybe how I'm using the .info file. I'm using Drupal 7 ...
1
vote
1answer
43 views

Drupal custom page template based on the title of the page

I have the following page: About us Whose path is: site.com/node/6 Theme suggestions for the template files are: page--node--6.tpl.php page--node.tpl.php You should already know that it is ...
2
votes
1answer
26 views

How to hide comment section present in render array?

I have generated an array in Drupal 8 which is created by using viewbuilder in this manner: $content = $this->entityManager()->getViewBuilder($entity->getEntityTypeId())>view($entity, 'hardcopy'); ...
1
vote
1answer
15 views

Theming blocks in Panels

Does anyone know of a module or some other way to allow users to customize blocks or panes (or even regions) in a panel on their profile page (i.e.: the authenticated user could change the color ...
2
votes
2answers
18 views

Unable to set Singularity grid total to 16

I’m having a problem using the Singularity grid framework. I set the total number of columns to 16 but it seems not to be reading this setting. instead the total seems to be 12. the details are as ...
2
votes
1answer
28 views

Display term description below a field widget based on the selected option on node edit form

I am trying to show a block (or the term description) on the node edit form when a user selects the term. An example: User is creating a node with a "location" vocabulary. They select their state ...
1
vote
1answer
20 views

Hiding a field in a node conditionally

I have a field that's a term reference field. If it has a value 'x' I want it to show on the node page. However if it has the value 'y' I don't want it to show. Is this possible?
0
votes
0answers
20 views

Notice: Trying to get property of non-object in drupal_alter() row 1080 in includes/modules.inc / How to fix? [duplicate]

My current protocol shows many pages full of the notice Notice: Trying to get property of non-object in drupal_alter() (Zeile 1080 von /home/httpd/vhosts/myURL/httpdocs/cms/includes/module.inc). ...
1
vote
2answers
23 views

Link to View page in TPL file?

Is it possible in a TPL to create a link to a View page? Rather than hard code the link I would like it to update if the URL of the view page changes.
1
vote
0answers
12 views

Two Column Drupal Commerce Checkout Page

How can I make my Drupal commerce checkout page - which now 1 long form - have 2 columns? I have read this, but its a bit above my head: ...
0
votes
1answer
14 views

Displaying alternate text for a taxonomy term in node

I have a taxonomy term called 'price'. I'd like it to display on the node page if it exists. But I don't want the taxonomy value to appear on the node page, I want the label to appear 'Price:' ...
1
vote
1answer
14 views

How do I interact with $title, $breadcrumbs, and $action_links within a process or preprocess function?

I'm using a Bootstrap subtheme, with a custom page.tpl.php override. Within the template file, I see there are variables for $title, $breadcrumbs, and $action_links. If I wanted to access these ...
0
votes
0answers
18 views

Targeting a specific set of nodes dynamically with a preprocess function

when I got to administer comments on my site, I click 'find content' > comments. If I want to moderate comments I click 'unpublished comments'. That shows me which comments needs to be published by an ...
1
vote
2answers
25 views

Drupal 7 — Would like to use unique profile template per role

I'm working on a Drupal project where we have two main roles (students/teachers) + an admin role. I would like to have entirely different profile pages for the different roles. At the moment I think ...
0
votes
1answer
24 views

File_load for image path errors when empty

I need to print the URL of an image in a content type TPL file. I can do this with the following code: <?php $file = file_load($node->FIELD_NAME['und'][0]['fid']); ?> <?php print ...
1
vote
0answers
17 views

Normal View creates form with hidden inputs?

Ive created a view which im rendering in a content type TPL file with this: <?php print views_embed_view('shows_taxonomy_term_links', "block_1"); ?> Im getting some really weird behaviour. ...
1
vote
0answers
22 views

Floating .field-item image to left of content type rather than centering it [closed]

I'm relatively new to Drupal and so-so with CSS and am trying to float the image on a particular content type to the left of the content rather than having it center on the page on a row by itself. ...
1
vote
2answers
16 views

using sass to generate RTL & LTR css files in Omega 4

is there any convenient way of using Omega 4 to compile rtl and ltr css files automatically. I mean something like this or this, but for drupal.
0
votes
0answers
31 views

How to position javascript file as the last one to load?

In Drupal 8 the weight for javascript files in libraries is not supported, or at least only negative values are allowed, which means I am only able to position them at the top of the list (i.e. load ...
-1
votes
1answer
26 views

How PHPTemplate works and what it do? [closed]

There is a default templating system PHPTemplate in Drupal, they say. But where can I see it? I don't see anything more than pure php in template files .tpl.php. Once I've seen template system ...
2
votes
0answers
15 views

Drupal log visualization

so I installed better statistics https://www.drupal.org/project/better_statistics and Syslog Access so now I am wondering is there a module that can take this data and visualize it like a graph, pie ...
2
votes
1answer
54 views

How do I use '#attached' to attach a style sheet?

I know that drupal_add_css is depreciated, and that we should use #attached instead to attach a css style sheet to a module. I am trying to replace the following (which works): ...
2
votes
0answers
19 views

Pass variable to field template from theme_preprocess_field()

I'm stuck trying to pass variables from my theme_preprocess_field function to my template file. I want to have a variable for each of the fields I am printing out to my template. I'm using the ...
0
votes
1answer
34 views

Using jquery-match-height to set two blocks to equal height

I'm new to jquery and adding it to Drupal. I'm trying however to add this library to my Drupal site so I can set two of the blocks on my home page to equal heights. But it's not working and I'm not ...
1
vote
0answers
27 views

How to fix views ajax problem when accessing via a proxy? (Browser Sync)

I am using a new theme called Neato which uses node.js to run gulp and Browser Sync. For dynamic sites, Browser Sync has to run in proxy mode and the live preview is then displayed at ...
0
votes
0answers
10 views

Load a single node on a taxonomy term page

I want to override the content output of term pages within a specific vocabulary. I need to show a specific node that is tagged with the term instead of all of the nodes. There will only ever be one ...
0
votes
2answers
48 views

Printing fields in a View template file (Devel / Krumo)

My "Article" node type has a field image. I can print this field in a node template with <?php print render ($content['field_image']); ?> I have a simple View which lists Articles here. The ...
1
vote
1answer
16 views

Best Practices? Create dynamic links with static titles on node full view page

As with anything drupal, there are a million different ways to do something. I am asking this question for 1) Because I actually have to do something similar and 2) Because I would like to know all ...
0
votes
1answer
25 views

Create Drupal 7 page specific tpl files without using node ID's

i know you can crate custom tpl files for a specific page by doing the following: html--node-999.tpl.php But this doesnt work well if the node-id is going to change when switching environments or ...
2
votes
1answer
8 views

Printing raw field value to use in path to files

I have field called "field_cat_id" which has a numerical value (10201; 10202 etc). The field represents a category id and it is also used to arrange PDF files, I would like to print this (raw) value ...
0
votes
0answers
11 views

Best way to develop a drupal mobile app? [on hold]

I'm looking to create a mobile app with a series of buttons in drupal. I looked at the mobile jquery theme so far. Will this be possible with that? Or is there a better route to go? Or should I make ...
1
vote
0answers
17 views

Taxonomy fields on Profile2 edit form

I'm hoping someone can help me. I've been stuck on this problem for a while and can't find help. I'm relatively new to theming in drupal, so forgive me if this is a basic question. I have a taxonomy ...
1
vote
1answer
20 views

What's the best way to create variables that are available to every single URL on my site, based on node id or taxonomy id?

On Drupal site A we have a bunch of links to non-Drupal site B. For marketing and tracking purposes all these links have a different URL variable appended to them, so that when a user registers on ...
0
votes
2answers
43 views

SHS module in drupal 7 views

I am using Simple hierarchical select module and I am having terms lists like below; India a) Karnataka Bangalore So, I want this filed as exposed filter in my views. Let me give example, ...
0
votes
1answer
20 views

How do I check if a block region is empty?

I'm wanting to apply some specific CSS on the condition that a block region is empty. How do I make this check?
0
votes
1answer
20 views

Drupal 7 theme table row array will not show

I have the below code and I know both the $headers and the $html have values stored in them as i can echo them out. I can also set the 'header' => in the theme function to be either $header or $html ...
1
vote
1answer
18 views

How to set all values of a field as body classes

I want users to easily modify the layout of a node by selecting options in a 'Layout' field that the node contains. The field is a entityreference field referencing taxonomy terms. (For example, the ...
-1
votes
1answer
22 views

css file defined in .info file is not loading in Drupal 7

This is the my .info file details name = Tripsinn description = A flexible, recolorable theme with many regions. package = Core version = VERSION core = 7.x stylesheets[all][] = ...
0
votes
0answers
15 views

Background image doesn't reach the bottom of page on Long pages in Zen [closed]

I am noticing - on some very long pages the page background image doesn't reach the bottom of page, leaving all white background down below the page.... It happens on a very long article -pages , may ...
1
vote
0answers
25 views

Default theme css wrongly included in another theme

I have 2 themes enabled on a Drupal 7 installation. The have one css file each included in their .info files: sites/all/themes/themeA/css/screen.css sites/all/themes/themeB/css/screen.css The ...
1
vote
1answer
43 views

Anyone know how to build a menu like this? [closed]

We are redesigning a site for a client and they're wanting to create a menu similar to the one found here (the big menu below the header, not the hamburger menu at the top left): ...
1
vote
3answers
55 views

How to theme output from module? [closed]

I have a simple module that is extracting names from database table. I can display that names in hook_block_view like this: function example_block_view($delta = '') { // $result - an array ...
0
votes
1answer
16 views

How to display the same nodes with two different themes?

I have some content types normally displayed with the default theme of my site. Now, I want to show such content types also in another section that is displayed with another theme and layout. What ...
1
vote
1answer
37 views

Drupal 7 field collection tpl no output on render

I'm using Drupal 7 with field collection module. I have my tpls setup and being triggered using the render function; however, even though the tpls are being executed, the output is being thrown away. ...
0
votes
1answer
36 views

Any way to set Drupal theme settings per page?

I have a theme which has multiple theme options in its settings page. Is there a way to assign particular theme settings to specific Drupal paths?