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

Drupal Views variable $rows outputs as a String

I've developed a custom .tpl.php file for my View and in the past it has worked. Suddenly, while working on my Macbook using MAMP, Drupal decided that the $views->rows needs to be output as a String type and not an array. I've searched online and…
jgrantd
  • 41
  • 4
0
votes
2 answers

Using jQuery with CSS in Drupal 7 "Zen" theme

I'm editing the "Zen" theme in Drupal 7. And that's the problem: (function ($, Drupal, window, document, undefined) { alert("xuy"); $("#navigation ul.links li").hover(function() { alert("xuy"); }); The first…
AlexEfremo
  • 773
  • 1
  • 8
  • 20
0
votes
1 answer

Drupal, auto-generate article urlpath based on menu path

I am using Drupal 7 to build a website. I am facing this issue. I have a page that shows a list of articles. Once I click on an article to view its full content, the urlpath does not follow the menu active trail anymore. Now a bit of explanation. I…
dog
  • 1
  • 1
0
votes
3 answers

PHP Filter in Blocks doesn't recognize standard variables

I've turned on the PHP filter so I can put PHP in block text, however the following variables: Cause the following errors: Notice: Undefined variable: node_url in eval()…
0
votes
1 answer

How do I set the theme during cron run in my module code for Drupal 7

During a cron run, I have a module that will cache the markup for many nodes. My problem is that during this cron run, any markup from the render function won't go through my themes hooks or templates. From within my module code, how can I select…
curiouser
  • 970
  • 2
  • 12
  • 22
0
votes
2 answers

Display page view inside page.tpl.php drupal 7

I have a file called page--advertsindex.tpl.php.. Now what i want to do is display that page inside the content region of page.tpl.php.. page--advertsindex.tpl.php contains the HTML which need's to be rendered in the content region of page.tpl but…
Michael Guimaraes
  • 333
  • 1
  • 3
  • 20
0
votes
1 answer

Centering resizable images in recursive divs with CSS in Drupal 7

I'm working on theming an image gallery in Drupal 7 I created, through which a user uploads several images and as a result see a list of images on the page. I use Responsive Images and Styles module so the images don't have a fixed size. The effect…
pandisvezia
  • 121
  • 3
0
votes
1 answer

implementing addtag in drupal template

i have code in my template: $query = new EntityFieldQuery(); $entities = $query->entityCondition('entity_type', 'node') ->propertyCondition('type', 'article') ->propertyCondition('status', 1) ->fieldCondition('field_show_on', 'tid',…
kelaskakap
  • 113
  • 2
  • 11
0
votes
2 answers

Can someone please help me, where on earth is this div tag located? in which module or theme?

Below is the code Inside this block is the search form. This code is located in the…
Chang Lin
  • 61
  • 8
0
votes
1 answer

Covering every css styling permutation and combination

I am building a website theme for distribution and I just uploaded a unit test to see how things looked. One of the things were nested blockquotes which in my case gave me a very large margin at the bottom. I was able to remedy this by…
byronyasgur
  • 4,627
  • 13
  • 52
  • 96
0
votes
2 answers

drupal panel or regions?

I want to make my Drupal 7 site look like exactly like www.io1.biz what should I do? the difference is that I want to add three views of latest content types instead of that three columns below the biggest image... and I want to change the…
shidsun
  • 69
  • 2
  • 12
0
votes
1 answer

In Drupal 7 I cant override the template in the parent theme through the child theme. How do I fix this?

Ive spent hours trying to figure this out and nothing works...What can I do?! It seems like this should be automatic but its hard to find a solution..
Joe Mcmorgan
  • 83
  • 1
  • 6
0
votes
1 answer

Drupal display View in a custom page of a theme

I create a new theme in Drupal. I need to display a view in custom page but i don't want to use the region. I need the php code that we add it to the tpl page
0
votes
3 answers

How to customize the output of node content in Drupal 6?

I am looking to customize the templated output of the $content variable in node.tpl.php Can you tell me how I could achieve this? Is is possible with another template file? The reason for this is to achieve AJAX pagination thus I need an ID on…
Jono
  • 462
  • 1
  • 10
  • 24
0
votes
2 answers

Remove pagination links under comments in drupal

I have embedded a view in node--mytype.tpl.php but the pagination links from the view also appear under the comments. I have looked everywhere but can't find a way to change this. Does anybody know how to do this?
gkom
  • 43
  • 5