A theme is a "skin" that lets you change the layout and appearance of a Drupal site quickly and without programming.

learn more… | top users | synonyms (1)

0
votes
1answer
10 views

Render date field in custom format in tpl file

In a content type tpl file I can print my date field with the following: <?php print render($content['my_date_field']); ?> However I need a custom date format. So instead of something like ...
0
votes
1answer
7 views

How to change the pagination of related entities displayed on a taxonomy term page?

On a default taxonomy term page, related contents are automatically paginated by 10. Let's say those related contents are always nodes and we always display the default teaser view mode. How can I ...
3
votes
2answers
25 views

Next link on node page based on its taxonomy term

So here is what I'd like to achieve: I'd like to put a Next link to every content of a type, that links to the next content with the same taxonomy term. So for examle if I have A, B and C products ...
1
vote
1answer
13 views

How to load conditionally a script depending on whether element exists in DOM?

I have a Drupal.behaviors.leftmenusticky script that converts a left menu to a sticky menu (100% height,position fixed and the like) but I want to drupal_add_js it only if the menu actually exists in ...
0
votes
0answers
21 views

Better theme framework for a big site with forum [closed]

I'm remaking a big site, where the principal points are: Geo location with map Forum Responsive (if it is possible) I need to use a good/very good theme framework at the base of the new site's ...
1
vote
1answer
20 views

How to theme nodes in views based on the author's role?

I have a view listing all recent blog posts that have been published on the website. These blog posts can be created either by regular authentified users or by staff members. I need nodes published ...
0
votes
1answer
19 views

Share single CUSTOM function across multiple themes

I have some repetitive code that I'd like to share across two separate themes. Is there a best practice for something like this? I know I can simply create an include file in the sites directory and ...
1
vote
0answers
8 views

showing an image field from solr index on custom solr search page

I use the Apache Solr Views module to create a View that displays only items from a specific content type. I would like to include an image as well on the view. I managed to get the images on my site ...
0
votes
2answers
45 views

Creating complex tables in views in Drupal 7

I was trying to make a report via views in Drupal 7. It's quite easy to generate a table with the headers being the labels of the fields, like the following (being very straightforward): ...
0
votes
0answers
11 views

Override contributed module output (inline links)

I've installed the Drupal 7 port of the Node to Word module for exporting nodes as word or txt documents. The module packs two links - "Save as Word" and "Save as Text" - into the $content['links'] ...
2
votes
1answer
19 views

Add class to term-reference output

I'm trying to add a simple class to a link outputted via print render($content['field_tags']). I'm using the Bootstrap theme. These are the approaches I've tried so far: Hooking into ...
1
vote
1answer
22 views

accessing block type in the theme_preprocess_node()

I have a block which include a view which is based on node.tpl.php, and I want to change the mark up in the node.tpl.php file just for a specified block. function ...
0
votes
1answer
32 views

Alter a form in a block only if it is in a certain region

In my template.php I'm trying to alter a form in a views exposed block, but I only want to do this if that block is in a certain region in my theme. I'm using Drupal 7. Is that possible? What php ...
0
votes
2answers
16 views

Print base path in html.tpl.php

Im trying to print the full path to my theme in my html.tpl.php file. In the following code the 2nd part prints correctly but the first part does nothing. <?php print base_path() . ...
2
votes
1answer
29 views

Optimized way to use media queries

I'm looking for the best way to use media queries within a drupal theme (based on Zen 5) The options I've found are : Defining media queries in the info file eg : stylesheets[all][] = ...

1 2 3 4 5 85
15 30 50 per page