This forum is for assistance with theme development.

cck: can I create a textfield that's 40 (or x or undefined n) lines long that doesn't take up too much space on the form?

I'm using cck with a field called descriptions. I'm defining it as a textfield. it seems that number of rows is required. I don't know if my user will put in 5 lines or 40 lines. I have 3 of these fields. right now, if I define them all as 40 lines, I got a form that's exceedingly long.

isn't it possible to have a textfield that does not have a preset number of rows? I see that on other websites. or at least if it has a set number of 40 rows, the user interface only shows about 3 so that the form does not get too long.

How do home page Latest picture and Article title layout

How do home page Latest picture and Article title layout?

Example picture

Thanks!

Is this possible? (teaserblock, clean links right top, dropdownmenu)

Hi all,

Currently I run into severall problems during my first template design for drupal. Despite I already solved alot myself by reading this forum there are still some things which I did not figured out myself so hopefully somebody can show me the path.

Captcha at the end of the form. How ?

Hi. I have installed captcha module. Now, when I go to user registration form (or an other one) I have at the top of the form the captcha section. How can I move it to the end of the form ? Tnx.

Rendering a table inside a fieldset

I've got a theme function in a module that I'm working on. It's for a configuration page with several different sets of controls that are grouped into fieldsets. One group of items consists of tabular data. I'd like this group to be placed in a fieldset, but I can't find a way to do so. There doesn't seem to be a way to specify how a table should be placed in a fieldset.

Are there any examples of how to do this? Has anyone run into this problem and figured it out? It was mentioned here, but there was never any resolution.

Right now I've got this bit of code for the form:

// Create the Link Types section.
$form['relatedlinks_types'] = array(
  '#tree' => TRUE,
  '#weight' => 3,
);

And this for the rendering:

// Render the link type data in a table sorted by weight.
foreach (array_keys($weights) as $type) {
  $rows[] = array(
    form_render($form['relatedlinks_types'][$type]['name']),
    form_render($form['relatedlinks_types'][$type]['enabled']),
    form_render($form['relatedlinks_types'][$type]['weight']),
    form_render($form['relatedlinks_types'][$type]['title']),
    form_render($form['relatedlinks_types'][$type]['max']),
  );
}
$header = array(t('Link Type'), t('Enabled'), t('Weight'), t('Title'), t('Limit'));
$output = theme('table', $header, $rows, array('style' => 'width: 100%'));

possible? sorting mp3's by most popular/votes?

http://notetoselfdontdie.com/members/audio

is it possible to have this list of songs sorted by most popular or most votes?

i am a drupal newbie, this is my band's website and i have learned and got the thing up all by myself with some tips from the drupal community...

1 do i need some kind of voting or node rating module?

2. how do i make the audio page so that it is a simple list, with songs in order of most popular?

Pages

Subscribe with RSS Subscribe to RSS - Theme development