This forum is for assistance with theme development.

theme breaks on contact page

http://www.diseno.be

The site is in dutch but here's the problem. On the contactpage there is a gap on the left side of the red square around the content area. All the other pages don't seem to have this problem.
Using very little css to build the lay-out. Basic table with images in them. Expandable cells with background images for auto-adjustment in both width and length.

Is there a way to have full control of the View Type for blocks?

I'd like to show only specific fields when I select "Teaser List" (view type) for my custom blocks. However, View only allows "fields" editing for the full node view (page).

Is there a way to edit what fields you want to be shown on "Teaser List" block without affecting the default fields on the view Page?

How to make phptemplate_menu_tree override to add custom ul id tag?

I am trying to make one menu (with id# 60) load with a ul list id="globalnav" on the first top level ul list.

I have figured out this override in my template.php file:

function phptemplate_menu_tree($pid = 60) {
  if ($tree = menu_tree($pid)) {
    return "\n<ul id=\"globalnav\">\n". $tree ."\n</ul>\n";
  }
}

But this puts the ul="globalnav" on every ul in the menu tree... Can anyone show me how to modify this so it only puts the id on the first ul in the menu tree?

Many thanks!

How do you show a field form on CCK-ed edit page?

I just created a custom edit profile page to get rids of excessive default forms user don't need when they fill they profile page.

However, I can't get this one to show up on the edit page:

"print drupal_render($form['field_gender']['0']['value']);"

As you can see, the field machine name is "field_gender." It's basically a select-list form, where users chose either "male" or "female".

Is the code above correct? This is the only form field I can't get to show up on the page.

Help with icons for Menu theme

Hi all.

I am still relatively new to all this and I recently borrowed some code to theme the secondary menu items and I think it is choking on the integration with the "me" module.

Here is the code for menu_item.tpl.php:

css help - only hange RIGHT block width

im using the zen theme and want to modify ONLY the width of the right module
after hours of trial and error using firebug i still cant find a solution
can anyone shine some light on this?
my layout.css is here:

#container {
margin:0pt auto;
max-width:1270px;
}
body.both-sidebars {
}
body.sidebar-left, body.sidebar-right {
}
#main {
float:left;
width:100%;
}
body.sidebar-left #main {
margin-left:-210px;
}
body.sidebar-right #main {
margin-right:-210px;
}
body.both-sidebars #main {
margin:0pt -192px;
}
#squeeze {
position:relative;
}
body.sidebar-left #squeeze {
margin-left:210px;
}
body.sidebar-right #squeeze {
margin-right:210px;
}
body.both-sidebars #squeeze {
margin:0pt 210px;
}
#container .sidebar {
float:left;
margin:-3pt -7pt;
position:relative;
width:208px;
z-index:2;
}
#container .sidebar .block {
background-color:#2C2C2C;
margin:4pt 0pt 1.5em;
}
#sidebar-right .title {
background-image:url(/themes/zen/images/module_1.png);
color:black;
font-family:Tahoma,Helvetica,sans-serif;
font-size:13px;
font-weight:normal;
height:22px;
margin-top:0px;
padding-left:25px;
padding-top:5px;
text-transform:capitalize;
width:auto;
}
#sidebar-left .block {
padding:0pt 0px;
}
#sidebar-left .title {
background-image:url(/themes/zen/images/module_1.png);
color:black;
font-family:Tahoma,Helvetica,sans-serif;

Pages

Subscribe with RSS Subscribe to RSS - Theme development