4

Multiple inputs on one line for cck2 input form

http://drupal.org

Hi all, I've been tearing my hair out with this seemingly simple task. Basically I have a cck content type and I am creating a custom add/edit template for it. Everything is working but I can't seem to group multiple inputs on one line. I.E.
city: ______ state: ____ zip:____ . I have tried to create a div wrapping around my form with display: inline but it doesn't seem to work. Here is a copy of my node-content_type-edit.tpl
[code]

<?php

        $form['title']['#size'] = 20;
        $form['field_datasource_organization'][0]['value']['#size'] = 20;
        unset($form['body_field']['format']['format']['guidlines']);
        print drupal_render($form['title']);
        print drupal_render($form['field_datasource_organization']);

        print drupal_render($form['body_field']);

        print drupal_render($form['field_contact_name']);
        print drupal_render($form['field_contact_title']);
        print drupal_render($form['field_contact_address1']);
        print drupal_render($form['field_contact_address2']);
        print drupal_render($form['field_contact_city']);
        print drupal_render($form['field_contact_state']);
        print drupal_render($form['field_contact_zip']);
        //print drupal_render($form);
   
?>

Read »
Created by Dplanet 1 year 26 weeks ago
Category: Theming   Tags:

PSD to Drupal Theme

Drupal Development

Module Development

Get an Estimate

Tags for Multiple inputs on one line for cck2 input form

Recent comments