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 7: custom design theme a block created with the Views module

i create block with views module for Print Promoted to front page, this worked and i see result in my front page. this views worked with field and i print title, thumbs, content. now i need to custom this theme views for show in jquery content…
BaTmaN
  • 825
  • 2
  • 11
  • 16
0
votes
2 answers

edit block in drupal instead of block number

I am trying to edit blocks in drupal 7.x . My base theme is Zen. In block.css I am able to change the css style of the blocks according to their numbers. But its confusing,is there there any other way to edit the style of the blocks ?
Nitish
  • 2,695
  • 9
  • 53
  • 88
0
votes
1 answer

Print theme() not working in drupal 7

I have a page.tpl.php in which has header , footer and content area. I need to load different content base on hook_menu from a module. I am using the following test code in the module to try and print something from my template: function…
Abhishek
  • 157
  • 1
  • 4
  • 13
0
votes
1 answer

theme Omega 3 - Use of the Regions

you are familiar theme of Omega 3? I have just finished creating a sub-theme and I configured the regions that I need on a page suitable for my content type. I joined two regions, in which I would like the content that I would like to take with php…
Antilope
  • 443
  • 2
  • 6
  • 17
0
votes
2 answers

omega theme, file node--type.tpl.php

I'm using the theme of Omega 3. I would like to review the layout of certain fields inside my content type "video". I made so the file: node--video.tpl.php: yet even this simple statement does not work.…
Antilope
  • 443
  • 2
  • 6
  • 17
0
votes
1 answer

Theme Omega 3 (D7) - multiple layout

I tried to use the theme of Omega 3 on Drupal 7. I like the use of column layouts with which you can choose the size of the regions. But I do not understand how to do, when I want to use a different layout on other pages, since the "settings" of…
Antilope
  • 443
  • 2
  • 6
  • 17
0
votes
1 answer

Drupal 7 theming : hook_theme or drupal_get_form

I'm wondering which is the best way to display a form on a page (for example : a register form for vip users ... and not in a block but as the main content). The user.module way in user_menu (*hook_menu*) : $items['vip/register'] = array( …
user494599
0
votes
1 answer

Drupal custom theme for existing php site

I am new to drupal and just finished studying the basic concepts in drupal. We are migrating an existing php site into drupal. The website posts articles every week and the articles are stored in database. Do I need to create a custom theme if I…
misamisa
  • 43
  • 1
  • 8
0
votes
1 answer

how to a translatable string in drupal theme?

I want to put a string as a signature in drupal theme I am working on. the website is multilingual and the string should be translated based on the current language of the website. I don't know how to do it. my drupal version is 6. Would you help…
hd.
  • 17,596
  • 46
  • 115
  • 165
0
votes
1 answer

Search form Alignment in Aqua marina theme Drupal 7

I have a problem with Search form alignment with Aqua Marina theme in drupal7. I want search block to be next to Logo (logo to be in the left corner of header and Search form to the right corner of the header). Please can help me with this. Thanks.
0
votes
1 answer

Drupal: How to migrate core profile fields into the new profile fields in D7?

Premises: I´m trying to upgrade a big D6 site to D7. I have the content profile module installed. I have a few core profile fields that I need to keep. The "profile" node that was created by the content profile module, has no fields in it. I just…
Rosamunda
  • 14,620
  • 10
  • 40
  • 70
0
votes
1 answer

How to print out search results in drupal 6

I created a custom searchpage.tpl.php to print out search form and search results using the following code:
Zim3r
  • 580
  • 2
  • 14
  • 36
0
votes
1 answer

How to insert/add region inside of a node after first paragraph

I'm trying to insert a block inside of a node. The problem is that I want it to appeat automatically after a paragraph X, preferably after the first paragraph. AdSense Injector module (http://drupal.org/project/adsense_injector) is quite useful, but…
take2
  • 616
  • 2
  • 17
  • 31
0
votes
2 answers

How to access cck fields in tpl file?

I am working on one already created drupal site. In themes folder it has one tpl.php file, Where theme is done to display the content. Now it is as follows print $content And all the fields of cck are displayed properly. But I want to access every…
user1481970
0
votes
2 answers

how to change the fields added to blog in drupal 7 where I want

I am developing a website using drupal 7. I use blog module which comes as a core module in drupal 7. in the blog post I have not only added text but also a slideshow to the blog. problem comes when I try to arrange the blog content. I wanted to…
newday
  • 3,842
  • 10
  • 54
  • 79