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

drupal Block Config option not showing in main page

Hi I am logging as admin but block config option icon is not showing on top right corner of every block. I have to opt a long route to configure the blocks. plz help.
ABH
  • 119
  • 2
  • 11
0
votes
2 answers

Drupal 7: How to theme nodes based on region?

How do I control the output of a node rendered inside a specific region? Inside Sidebar First, I can theme blocks by creating a block--sidebar-first.tpl.php template file. However, creating a node--sidebar-first.tpl.php does not work.
Eleine P.
  • 27
  • 4
0
votes
2 answers

Drupal sub theme does not inherit the parent css

I have a sub theme called JeanB whose jeanb.info file is like name = JeanB description = JenB is a new theme. basetheme = bartik. stylesheets[all][] = css/jeanb.css regions[header] = Header regions[help] = Help regions[page_top] = Page…
Nitish
  • 2,695
  • 9
  • 53
  • 88
0
votes
1 answer

Drupal 7 theming: Highlight the relevant sub-menu when viewing an article

I'm making a news theme with sections like "Sports", "Health" etc based on the taxonomy module. The "Section" vocabulary is then used as a main menu with sub-sections as sub-menus. Now, I want the relevant sub-menu (e.g. "Health") to stay…
Eleine P.
  • 27
  • 4
0
votes
2 answers

Drupal path wildcard but not on all levels

I have created a view page which shows all the work project thumbnails by default and then there is a block included on the page which filters the view (but not using ajax) it just added the company name into the url and it filters using contexual…
0
votes
1 answer

How to only show the content of the view on page?

I want to disable everything on the page (logo, blocks, bottom-menu,...) and only show the content of the view. With views-view.tpl.php is not really working...
jimi
  • 213
  • 1
  • 3
  • 10
0
votes
1 answer

YOUR_THEMENAME_menu_tree__YOUR_MENUNAME not working

I have a custom Menu called "Footer", the machine readable name is "menu-footer". And I want override the theme_menu_tree() function for the menu. My theme name is "abc", so I tried abc_menu_tree__menu_footer() and it is not working. But modifying…
Abenil
  • 1,048
  • 3
  • 12
  • 26
0
votes
1 answer

unable to add multiple .JS files to template.php in Drupal 7

In my template.php that exists in my theme directory I have this method: function vocabt_process_page(&$vars) { drupal_flush_all_caches(); // Try to add js per page $alias = drupal_get_path_alias($_GET['q']); …
Rees
  • 1,757
  • 9
  • 33
  • 50
0
votes
1 answer

Can a drupal view return groups that have no associated rows

I have an event view that is grouping an html list by date. The display I want to create is a "week" display with columns for sunday 1st, monday 2nd, tuesday 3rd ... saturday 6th. It's working great when I have an event on every day, but when there…
Ben Scheib
  • 392
  • 1
  • 3
  • 16
0
votes
1 answer

Where is it best advised to include JavaScript and CSS files in Drupal?

Where is it best advised to include JavaScript and CSS files, in the case you have a theme and a sub-theme? Does it have the same effect when you use those files from a .info file, a template file, or a module?
arteta
  • 33
  • 5
0
votes
2 answers

hook_preprocess_page() does not seem to use the suggested template file

I am suggesting a template file in the hook_preprocess_page() implementation done from a module, but the suggested template file doesn't seem to be used. The template file is page--terminal-template.tpl.php, which is in the directory containing the…
arteta
  • 33
  • 5
0
votes
1 answer

Drupal6 template file not recognised

I've create a nodequeue and set the "Description / Tag" in the Defaults section to "Entertainment Highlights" and when I click to view Theme: Information it has a template suggest for style output of…
0
votes
0 answers

Drupal White Screen only on product page?

I am pulling my hair out at this question. I have found many things of white screen of death and have tried many methods. Only my product page appears as a white background. However, links are still shown. I have tried clearing cache which didnt…
0
votes
1 answer

How to create a custom theme in drupal6 and apply template to it

I am just tried to create a module name mymodule and tried to apply theme to that module in drupal6. I have added .info file for my module and created mymodule.tpl.php file in my theme folder and enable the module from the admin. But when i access…
anoop
  • 1,604
  • 6
  • 24
  • 50
0
votes
2 answers

how to use dedicated php file for Page in Drupal 7

I am very very new to Drupal 7 and am simply trying to create a new page that uses a dedicated .php page along with a custom page.tpl.php file. Within the CMS of Drupal after creating a new "Page" within the content tab... I see this text under…
Rees
  • 1,757
  • 9
  • 33
  • 50