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

Custom Webform Page Layout in Drupal 6

I recently finished building an intranet site with Drupal 6 (client mandated the older version) using the Zen theme. The site contains several (20+) survey pages made with Webform. Client wants to change the layout of the webform pages to have a…
danzo
  • 301
  • 1
  • 5
  • 18
0
votes
1 answer

Drupal Views: Create 3-Column Home Page with Taxonomy Terms

I am looking to create a 3-column home page design for my site that segregates 3 different items of a given taxonomy type (News, Training Alerts, and Advisories) into 3 separate columns. Each column shows not only the taxonomy term, but pulls the…
webdevanddata
  • 167
  • 13
0
votes
1 answer

Drupal 7 preprocess function for custom page template

I need to initialize some variables in a preprocessor function. I know for page template i can use mytheme_preprocess_page. I have a custom page template page--mycustompage.tpl.php. I want to preprocess some variables only for that template. Is…
Abhishek
  • 157
  • 1
  • 4
  • 13
0
votes
1 answer

How to define another teaser for the second theme?

I have two themes: regular (1st) & mobile (2nd). Mobile theme binded with subdomain m.mysite.com. I can't show my mobile node teaser in mobile theme. I've created that teaser for mobile theme in Display Suite. Next I need to show this one in mobile…
Konstantin Konopko
  • 5,229
  • 4
  • 36
  • 62
0
votes
1 answer

drupal 7 custom template doesn't show up

i have a problem. 1 i've created a new page called Contacts, machine name is contacts 2 ensured, the path is correctly assigned (/contacts) 3 saved my page.tpl.php as page--contacts.tpl.php 4 even added some php code in my template php (see…
eyurdakul
  • 894
  • 2
  • 12
  • 29
0
votes
1 answer

Drupal 7 how to display $user_picture in node

the Theme I am using (Plasma) has an option in the settings to display the users profile picture, but when I select it, it only shows the picture in the comments. When I looked at the node.tpl.php in the theme it does not output the $user_picture…
PrestonDocks
  • 4,851
  • 9
  • 47
  • 82
0
votes
1 answer

How can I override path to my alternate template (.tpl.php) file, located within my module's folder?

I want to create a custom theme for a specific page. (e.g. www.domain.com/roster/%/home) For this purpose I've created the following file and placed it within the templates folder of my current theme (bartik): page--roster--home.tpl.php. It…
Saahir Foux
  • 654
  • 4
  • 12
  • 27
0
votes
1 answer

CSS and JS fail when upgrade made to Drupal site

I've run into an issue that crops up when I make a change to a Drupal site - www.productworld.com This is how the problem crops up: Make a change to site, e.g. add javascript tracking code or adding a new static webpage. When NOT logged in as admin…
patrickk
  • 13
  • 1
  • 1
  • 6
0
votes
1 answer

RapidWeaver Theme to Drupal6 Theme

I am working on a site which has a RapidWeaver Theme ( f_fusion ). But I am more of a developer than a designer. Is there any way for us to convert a RapidWeaver theme easily to a Drupal6 theme so that all the styling remains the same ?
svabhishek
  • 83
  • 1
  • 7
0
votes
1 answer

Drupal 7, how to span html/markup in a submit element?

Ive created the a button $form['submit'] = array( '#type' => 'submit', '#value' => 'verify', '#tree' => TRUE, ); And I have added some markup code $form['submit']['verify'] array( '#markup' => 'example text', ); The button and the markup…
Sam Healey
  • 666
  • 2
  • 8
  • 22
0
votes
1 answer

Drupal 7 missing edit button on user profile page

I've fully customized theme for Drupal 7. And on the user profile page there is no edit button. "History" field is only thing which is displayed. I understand that I did something wrong with theming. What I need to do to have this button:
Matej
  • 7,728
  • 4
  • 23
  • 30
0
votes
1 answer

How to change ubercart add to cart button to image[Drupal 7]?

ubercart in add to cart button i want to change this as image of [add_to_cart.jpg]. How to update cart page with extra columns like unit price .. Add extra column in ubercart cart-page by default this is table format.here some filed like [remove…
LAv RAi
  • 31
  • 7
0
votes
1 answer

Drupal fb Like Box Css

Im making a website using Drupal 7. I just installed the 'Social Media' and 'Widgets' Modules. Then I added the fb like box to the left sidebar region of my danblog theme. As you can see the box overflows the block. Can I solve it by some…
Shashank Singh
  • 283
  • 1
  • 5
  • 16
0
votes
1 answer

Drupal sections division

I'm doing an intranet for a company that has multiple projects going on internally. The idea is that each project has only 3 distintive things: its homepage, a small theme variation and its posts. Everything else is shared: every user can post into…
Juan Ignacio
  • 3,217
  • 8
  • 33
  • 53
0
votes
1 answer

Styling/Theming Drupal 7 Content Type Record

I developed a Content type of "Car Sales" with following fields: Manufacturer Model Make Fuel Type Transmission (Manual/Automatic) Color Registered? (Yes/No) Mileage Engine Power Condition (New/Reconditioned/Used) …
Farrukh
  • 339
  • 4
  • 12