This forum is for assistance with theme development.

tables in minelli theme

I would like to create a table in a blog post on a site that uses the minelli (garland fixed width) theme. However, I'm unable to constrain the table's width. The content isn't wrapping no matter how many widths (table, td, th, etc) I stick on. Anybody aware of this issue and have a workaround?

Unique ID for each menu

Hi, I've spent a lot of time trying to find how to create unique ID for each menu. Let's say I've created some new menus in Administration -> Menu. In page.tpl.php I use this way to insert primary (or secondary) menu:

print theme('menu_links', $secondary_links, array('id' => 'blue', 'class' => 'side-menu'));

Is there any way how to use the same or similar piece of code for my other menu - where can I find how other menus are called? I guess if I knew the name of the array with each menu I would just put there this:

print theme('menu_links', $XXXXXXXXXXX, array('id' => 'blue', 'class' => 'side-menu')); // where $XXXXXXXXXXX is new menu

Is it right? But I don't know where to find it...can anyone please help me with this?

-------------------------------------------------------------------------------------

theming item_list for OG module

I am trying to theme OG blocks. OG has the following function

function og_og_block_details($node) {
.........
.........

$block['content'] = theme('item_list', $links). $post;
$block['subject'] = $node->title;
return $block;
}

Help making a three colum, flexible, "vanishing div" layout

So I have been around the block on Drupal themes but I still don't have a good head for Drupal and CSS together, it can be maddening. Here is my scenario:

I would like to make a fairly flexible theme layout made up of four DIVs. The first DIV (flexible width) is the container of the others, the remaining three make up a main DIV (flexible width), a left sidebar DIV (fixed width) and a right sidebar DIV (also fixed width). My hope is as the browser window is resized that the parent DIV resizes and forces the main DIV to resize as well. The sidebars will always remain the same width.

Added to this, I would like sidebars to not appear if there is no sidebar content. I have a little php if statement that basically says "if there is sidebar content then print the sidebar, otherwise do nothing". This means the I would like the content DIV to stretch to fill in the missing width caused by the unrendered sidebar.

Customizing a template for individual content types/Panels

Hi Guys!

I'm looking to create custom layouts for content pages based on the content type. So for instance, every review someone reads has the same layout, and every blog someone reads has a different layout. Now, using views how would I do this.

I'm becoming more familiar with views, but how do you assign a particular content type to a view that would work for all posts under that content type?

Individual Poster Reviews

Greetings!

I'm currently using 5-star to handle the accumulative reviews of a particular article or movie and it's working great. However I'd like to implement a second separate rating system (for a single content type, nothing global) where an individual that is posting a review can give a set rating for the item being reviewed. This shouldn't be editable by anyone except the poster and shoudl show at the top of the content piece.

Pages

Subscribe with RSS Subscribe to RSS - Theme development