Questions tagged [drupal-theming]

In Drupal terminology, "theming" is rendering or modifying the HTML markup produced by a module or a theme.

Drupal theming system allows a theme to have nearly complete control over the appearance of the site, which includes both the markup and the CSS used to style the markup. For this system to work, modules, instead of writing HTML markup directly, need to return render arrays, which are structured hierarchical arrays that include the data to be rendered into HTML (or XML or another output format), and options that affect the markup. Render arrays are ultimately rendered into HTML or other output formats by recursive calls to drupal_render(), traversing the depth of the render array hierarchy. At each level, the theme system is invoked to do the actual rendering. See the documentation of drupal_render() and the Theme system and Render API topic for more information about render arrays and rendering.

Reference

822 questions
0
votes
1 answer

Drupal 6 not loading page-user.tpl.php file

I am running a Drupal 6 installation and am using domainname.com/user to use Drupal's special functionality (ie display the login screen if the user isn't login or display the user's profile if they are). The problem is that I have created a…
user5013
  • 981
  • 4
  • 10
  • 21
0
votes
1 answer

insert a block of fixed size on the home page

I would like to make a block whose content is equal to the last article inserted. also must have a fixed size, and always stay on the home. How do? see also image:
Antilope
  • 443
  • 2
  • 6
  • 17
0
votes
1 answer

Making A slideshow appear on more than first page

I am using the premium responsive theme in Drupal 7 to create a site. In the theme the front page has a slideshow on it. Is it possible to make the slideshow appear on the top of every page? EDIT So I was messing around with this a little more and I…
Jeff
  • 745
  • 6
  • 24
0
votes
2 answers

Previous/next navigation that uses ordering/sorting different than node id (n.nid)

I am trying to create "previous/next node" navigation on my nodes in order to show 2 previous and 2 following nodes in the term currently being viewed. Here is the code that displays 2 prev and 2 next nodes, but it is not taxonomy aware, i. e. it…
take2
  • 616
  • 2
  • 17
  • 31
0
votes
3 answers

DRUPAL: Making Multiple Front Pages with same layout, but different content

To start, I am a beginner in drupal, so any advice helps me out a lot. My problem: I am interning for a village hall and they want me to recreate their website for them using drupal. So far I have created a front page with a drop-down menu,…
Jeff
  • 745
  • 6
  • 24
0
votes
0 answers

403 errors when attempting to load stylesheets in drupal

I'm attempting to convert a static website into a Zen subtheme and I keep getting 403's on all of the stylesheets my subtheme references. I tried changing permissions, but am still unable to load the files. I thought the problem might be due to a…
devnill
  • 2,043
  • 4
  • 21
  • 31
0
votes
1 answer

Pager is not rendered on front page in Drupal 7

I see that there is a pager array inside the $page. But it doesn't print a pager. content (Array, 4 elements) system_main (Array, 5 elements) nodes (Array, 6 elements) pager (Array, 2 elements) #theme (String, 5…
0
votes
1 answer

how to set image style based on role?

Hi I have 100s of images on my site. I have an image style which displays all of my photos at high quality. I have another image style which displays my images low quality with watermarks on them. What I would like is if the user anonymous of a…
Sam Healey
  • 666
  • 2
  • 8
  • 22
0
votes
2 answers

Drupal dynamic module for responsive slideshow

I am currently working on drupal responsive theme.For this I am creating my own custom theme. For making it responsive I have used twitter bootstrap. I have used carousel plugin for slideshow which works well in html. The images in the slideshow…
DoctorAV
  • 1,189
  • 1
  • 14
  • 40
0
votes
2 answers

Drupal 7 print node type

I am trying to print the node type in a tpl but not having much look the code I am using is: type != 'commissions'): ?> Any ideas? Cheers
Chris Archer
  • 47
  • 1
  • 8
0
votes
1 answer

Drupal 7.14: Preprocess search block form gives me a blank form to render in $search_form

I've started working on a theme from scratch, I've tried to replace the title of the textfield but when imploding the search variable into search_form, the result is blank. Any error that I could be missing? `function…
raul782
  • 479
  • 1
  • 5
  • 15
0
votes
1 answer

Changing drupal $base_path

I am trying to install a drupal 7 module. It says that I have to change the $base_path if the site is not root. I have installed my drupal site at /localhost/drupal7/ on my local machine. Can someone tell me what should I change my $base_path…
Fox
  • 9,384
  • 13
  • 42
  • 63
0
votes
3 answers

Is it possible to have a large image above the content node in Drupal?

I'm trying to replicate pages like the following using Drupal: http://www.ams-neve.com/Products/Outboard/1073LB/1073LB.aspx My problem is that I'd like the image at the top (which changes depending on which page you're on) to be part of the main…
0
votes
3 answers

adding image in footer in drupal 7

I am new to Drupal.I am using marinelli theam.I created one block and placed in footer section with some text.In Drupal 7 how to add an image in a block located in footer section..I tried using Full HTML and filtered HTML Text format.It was not…
Mahesh
  • 1
  • 1
  • 3
0
votes
2 answers

Override Drupal Node Template

I want to change the layout of some nodes on my Drupal 7 site - namely to have the fields display across the page. In reading up on theming, they seem to be saying that in order to override node.tpl.php, I need to have my own them? Is there a way…
EdgeCase
  • 4,719
  • 16
  • 45
  • 73