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

How to add javascript library in Drupal 8 theme?

I'm attempting to include a custom javascript file to manipulate my menu's in the Drupal 8 theme I am building. I followed the instructions in the Drupal 8 themeing guide, including it in my .info.yml file: #js libraries libraries: - dcf/base and…
whiplashomega
  • 49
  • 1
  • 9
2
votes
2 answers

Override html.tpl.php per node type does not work

I saw that this was asked few times before, and i tried the answers, and i tried modifying the answers, yet nothing. Case: I have advanced forums installed, and i am using appcache(don't you dear to run away now!) Obviously i need to turn appcache…
J0N3X
  • 228
  • 2
  • 14
2
votes
1 answer

Change position HTML element in Drupal 6

I'm currently implementing accessibility website to meet the Level AA Conformance One of the things that I do not meet the correct labeling of the elements on the forms. Currently my HTML structure is this:
2
votes
1 answer

Drupal 7: How to create a "shippable" theme?

I'm creating a new Drupal theme for news web sites, which needs some fields to be added to the Article content type to work. For example, the theme will change the header image into something science-related when the user is viewing an article…
Eleine P.
  • 27
  • 4
2
votes
1 answer

I cannot display the header region in my Drupal theme

I am not seeing the content I have for the header region in my drupal theme is it best practice to use the following code in the page.tpl.php? I see the content when I use the code above but I cannot…
Amen Ra
  • 2,843
  • 8
  • 47
  • 85
2
votes
1 answer

How does a CMS developer used to "traditional" templating learn how to love Drupal?

One thing I struggle with in learning Drupal is managing the output. There's such an abstraction from the templating. All the output -- all the templating, really -- is meant to be done from the interface. You don't code markup, you place blocks…
Deane
  • 8,269
  • 12
  • 58
  • 108
2
votes
1 answer

How do i set a specific template for a specific module in drupal 6 using hook_theme

Is there any way by which i could assign a template to my custom module.I heard it may be possible.I tried out with the hook_theme function.My hook_theme looks something like this function special_theme() { return array( 'special' => array( …
Nibin
  • 3,922
  • 2
  • 20
  • 38
2
votes
2 answers

drupal 7: how to access list-field's key instead of its label (field api)

I'm working on a custom theme and googled the whole day but can't find an answer to my question: how to print out a cck list field's key instead of its label? I think it's the right way to access fields via the field api, right? so I try $output =…
user2275302
  • 23
  • 1
  • 4
2
votes
2 answers

how to override node.tpl.php for a specific content type and display all the contents in a single page?

I am newbie to drupal . I am creating a content type "news" . Every time i created a content of type news it shows in the page like .../drupal/?q=node/6, .../drupal/?q=node/7 and so on . What i exactly need i want to listing all those contents in a…
Drupalie
  • 31
  • 1
  • 7
2
votes
1 answer

How to set up a Drupal 7 landing page?

Landing page : A landing page is a very first page of a website. For example, if you go to http://www.google.co.in/ you can see a page that specific page you view for the main domain is called a landing page. The very first page of the…
Neocortex
  • 653
  • 9
  • 32
2
votes
2 answers

Assigning existing display template to Drupal view

How can I assign an existing template file (template file of an another view) to Drupal view. I already have a template views-view--search-issue.tpl.php for search_issue view. Is there any way to use the same template for another view archive_issue?…
Prajila V P
  • 5,027
  • 2
  • 23
  • 36
2
votes
1 answer

drupal 7 styling the ajax throbber and progress bar

Can I style Drupal's AJAX Throbber and Progress Bar? What are the classes or ids to overwrite?
LeBlaireau
  • 17,133
  • 33
  • 112
  • 192
2
votes
1 answer

Drupal 7 - How do I use pathauto taxonomy terms in views arguments

I have been banging my head against this problem all day. I'm using Drupal 7, and I'm trying to create a contextual filter that uses the pathauto string for a taxonomy term, not the taxonomy term ID. So, I can make this…
2
votes
2 answers

How to remove page elements based on browser size in a Drupal 7 Omega sub-theme

I have been looking into responsive design using Omega subthemes. It seems very powerful when combined with the context and delta modules. However, I am having difficulty understanding how to selectively remove parts of a page in a responsive…
Benjen
  • 2,835
  • 5
  • 28
  • 42
2
votes
2 answers

My new drupal theme isnt showing up. How do I make a drupal theme show up after install or manual creation?

I created a child theme but it doesnt show up in the Admin section of available themes... what do I do?
Joe Mcmorgan
  • 83
  • 1
  • 6