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
1
vote
1 answer

how template engine interact with drupal 7 core to display web page

i am intermediate in drupal.i start learning drupal 7 theme system. i need to know how template engine handle php,html/css inside its template files and its interaction with core system to make its final output as webpage.Means when we load drupal…
GiLL
  • 354
  • 1
  • 5
  • 15
1
vote
1 answer

Wrong theme as other user role

When I am loged in, I have the Seven admin-theme, as administrator. But when I have created an new user with a new role, named "editor". This users theme is a mix with Seven and Zen theme. How is that possible? Under apperence tab the…
Max Allan
  • 640
  • 5
  • 18
1
vote
1 answer

Programmatically set the value of a block in Drupal

Can we programmatically set the value of a block in drupal?? We could do that via the admin section, but I am looking to see if there is a way, where we could programmatically say that if($block=="sidebar") { // do this } I could then put this in…
macha
  • 7,337
  • 19
  • 62
  • 84
1
vote
3 answers

how to rename the acquia marina theme in drupal?

I am already install drupal in my localhost after that i want to add acquia marina theme. in side the sites/all/themes/acquia_marina.i want to rename the "acquia_marina" to "drupal_theme7". please help me?
3ok
  • 11
  • 4
1
vote
1 answer

Drupal 7: print field to region in node--type.tpl.php file

In Drupal 6, it was so easy to print content to an existing region using the following: I've been searching and searching for how to do this in Drupal 7 after finding out…
Webdrips
  • 265
  • 2
  • 17
1
vote
1 answer

Drupal 7 - Theme the user profile form

I'm trying to theme my Drupal site's user profile form at the moment. I'm using hook_form_alter in the theme's template.php file. The code is the same as the code I've used to edit another form but for some reason I can't spot it's not…
SpaceBeers
  • 13,617
  • 6
  • 47
  • 61
1
vote
1 answer

Show submenu in another block

I have a Drupal 7 CMS with a Navigation build with nice_menus (http://drupal.org/project/nice_menus). My main menu has several links and each link has several sub links. These sublinks should be shown to the user in a block. Any advice on how I can…
jussi
  • 2,166
  • 1
  • 22
  • 37
1
vote
1 answer

drupal views exposed filters not visible in linux installation

I have a view with exposed filters, which is visible and working fine in windows installation. But after i moved it to Linux installation, the exposed filters are not visible in view preview and in actual view page. Your help much…
1
vote
3 answers

Completely change the design of a page in Drupal 7

Is there a way I can fully customize a page in Drupal? I don't want the Drupal header or any other HTML generated by Drupal to show up, but I want to be able to access the Drupal functions.
Eduard Luca
  • 6,514
  • 16
  • 85
  • 137
1
vote
1 answer

theming price format in drupal ubercart

What I am trying to achieve is to theme the price format the following way. I only want to remove the decimals when they are 00. For example €5,00 should be €5, but €5,50 should remain the same, not €5,5. I found a forum about this problem but I…
user1031742
  • 404
  • 1
  • 6
  • 20
1
vote
1 answer

#autocomplete_path in form creating JS error

I am trying to use #autocomplete_path in my text field. But its showing error message. Same problem happening while using AHAH also. Code : $form['test_module']['user_name'] = array( '#type' => 'textfield', '#title' => t('Name of user'), '#name'…
Vinoth M
  • 157
  • 1
  • 5
1
vote
2 answers

How to add an HTML attribute to a CCK image field

I am trying to add an attribute of "id="background" to the actual image tag. I've looked up tons of articles and they are all concerned with hook_form_alter and this is not a form. This is simply…
josephleon
  • 1,219
  • 2
  • 9
  • 8
1
vote
1 answer

Prev/Next node navigation with a thumbnail in a full node

I've been trying to figure this out and make it work, but as I'm not a programmer, just a designer with limited coding knowledge I've been hitting a wall on this one. I'm making my own photo gallery and I would like to display two previous or next…
1
vote
2 answers

Custom region does not show up in a Drupal Sub theme

I am attempting to create a custom region for my Drupal 7 sub theme. The process I am following is: 1) Specify sub region in .info file of subtheme like this: regions['sub_region'] = Sub region 2) In the page.tpl.php file, print…
Parijat Kalia
  • 4,929
  • 10
  • 50
  • 77
1
vote
2 answers

Right way to theme radios in Drupal?

I tried theming of radios in Drupal module overriding the following code in my theme function. For experimental I did not change anything in the below function and just migrated into my module with different name that would not conflict with…
Muneer
  • 7,384
  • 7
  • 38
  • 62