This forum is for assistance with theme development.

Customizing taxonomy-block layout

Hi,
How can I customize the taxonomy-block layout using .tpl.php file, like the way I customize a page.tpl.php file? Thanks for any help.

embedding drupal into html template

After a successful installation of drupal (angels singing *Hallelujah!*), I want to embed the blog (stories) into an existing template.

My homepage (http://www.rollingout.com/OFFLINE/test_homepage.php) would lead to articles which would be embedded into this page http://www.rollingout.com/OFFLINE/test_regularpage.php

How can drupal tackle something like this? Any examples how to?

really need help urgent !!!!

Hi, i have to create a new template for my work, so i pick one already done and start modify it until it look fine, then when i upload it to the hosting, the template looks awfull!!! How can be posible that it looks good on my machine and so bad in the hosting, (i use div instead of tables and it is all mess up).

Any sugesstions well be welcome.

Different Styles depending on sidebars' existance (Holy Grail)

I have a basic theme I use to make all the Drupal themes for clients based on theHoly Grail (http://alistapart.com/articles/holygrail) layout.

Yesterday, I noticed that my theme no longer works on Drupal 5 installations. I read the Converting 4.7.x themes to 5.x (http://drupal.org/node/64292) page to find that drupal_add_css() (http://api.drupal.org/api/HEAD/function/drupal_add_css) is now the new way to add CSS.

Now, the idea is that I load one of four style sheets containing the structural styles for the Holy Grail:

Both sidebars, left sidebar, right sidebar and no sidebars.

I used to do this in page.tpl.php, but drupal_add_css() does not work there. I then tried moving the logic to template.php, but in there, in function _phptemplate_variables($hook, $vars) {, it is only possible to check if sidebars are existant after it is no longer possible to use drupal_add_css().

I asked in #drupal-support, last night and this morning but no one knew or were available to help with this.

The solution I found then, after reading the Converting 4.7.x themes to 5.x (http://drupal.org/node/64292) page again, regarding the availability of the $css variable on the theme level, was to add this to the page.tpl.php file:

<?php
if (!$sidebar_left && !$sidebar_right) {
$css['theme'][path_to_theme() . '/hg_one_center.css'] =
array('path' => path_to_theme() . '/hg_one_center.css', 'media' => 'all'); }

Theme for panels module??

I'm looking for a way to customize the page layout for the panel's page I created. I've created a new page by panels named "blogindex" and the url looks similar to this http://www.example.com/blogindex. Is there any way to customize that specific page only? something like creating another blogindex.tpl.php.

I'm using PHPTemplate Theme btw.

Thanks

question for the forms gurus

I'm playing with theming forms, and put the following in my theme's template.php file:

function mythemename_node_form($form) {		
  $output = form_render($form);
  return $output;
}

As I understand it, this should do nothing at all... my output form xhtml should be identical with or without the above code.

However, without this template.php function, my page structure goes like this:

Pages

Subscribe with RSS Subscribe to RSS - Theme development