This forum is for assistance with theme development.

Add target attribute to form

Hi,

I'm trying to adding a target="_top" attribute to a form using Drupals form API. Intention is to break out of a iframe (greybox), but can't figure out just how. Any suggestions?

Nicemenus with Images instead of text

Hi all,

I'm trying to get my primary links to appear in a CSS dropdown menu a la Nicemenus. The secondary and tertiary links will be system text, but I need the primary ones to be images, not text. does anybody have experience doing this with Nicemenus or another CSS/javascript dropdown menu system?

Thanks in advance!
Andy

New Theme Port

Hello All,
I love Drupal.
But i want a new theme for it.

Could any one port this theme to work with Drupal.
Demo - http://fullahead.org/work/CuttingCorners/

Download - http://fullahead.org/work.html < called as Cutting Corners.

Or could anyone guide me on how to convert it.

Thanks,

How to link Views fields to the full node ?

HI !
I use Views to display some thumbnails and I'd like to know... how to link each thumbnail to the full node ?

Here's my function

function phptemplate_views_view_list_Discs($view, $nodes, $type) {
  $fields = _views_get_fields();

  $taken = array();

  // Set up the fields in nicely named chunks.
  foreach ($view->field as $id => $field) {
    $field_name = $field['field'];
    if (isset($taken[$field_name])) {
      $field_name = $field['queryname'];
    }
    $taken[$field_name] = true;
    $field_names[$id] = $field_name;
  }

  // Set up some variables that won't change.
  $base_vars = array(
    'view' => $view,
    'view_type' => $type,
  );

  foreach ($nodes as $i => $node) {
    $vars = $base_vars;
    $vars['node'] = $node;
    $vars['count'] = $i;
    $vars['stripe'] = $i % 2 ? 'even' : 'odd';
    foreach ($view->field as $id => $field) {
      $name = $field_names[$id];
      $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view);
      if (isset($field['label'])) {
        $vars[$name . '_label'] = $field['label'];
      }
    }
    $items[] = _phptemplate_callback('views-list-Discs', $vars);
  }
  if ($items) {
    return theme('item_list', $items);
  }
}

I've tried this in my tpl .php file but it doesn't work


print $link
"> print $field_pochette_du_disque_fid

Comment background color changed based on User Role

I'd like to be able to change the background color for comments posted by certain user roles. i.e: if a moderator makes a comment on a node, the CSS of the comment background would change appropriately. How do i access the User's Role variable and where do i place the code that calls the appropriate CSS style?

So far i have found a snippet that displays the user's role, but this seems to only work in the User Profile page and requires

how can i stretch a title as the space requires it...

hey guys i'm developing a new theme 4 drupal and right now i'm wondering if i can make a title to stretch a title to the space i want (in pixels) eg. 300x100

as
i
want
the
title
to
look
like
this

thanks in advance...

Pages

Subscribe with RSS Subscribe to RSS - Theme development