Paid affiliate advertisement

$15 for Showing cck created fields in a row during story creation and also in teaser view

werushka - April 26, 2009 - 04:40

Right now when I create new node the CCK fields that I created are showed in each line. Is it possible to set it so the fields are lined up in a row.

Also in teaser view it should be displayed in a row.

Thanks

By "CCK fields that I created

nevets - April 26, 2009 - 04:51

By "CCK fields that I created are showed in each line" do you mean label and value on the same line. If yes, for viewing you can control this when edit the content type under "Display Fields".

what fields u are

mm167 - April 26, 2009 - 05:03

what fields u are adding?
list all your fields and let me make a demo for u.

We go the drupal way. How about you?
http://www.drupalway.com

field_yas field_cinsyet field

werushka - April 26, 2009 - 05:13

field_yas
field_cinsyet
field_sehir

these should show in same row during form submission and also in teaser view (when displaying the story)

......? text filed?

mm167 - April 26, 2009 - 05:53

......? text filed?

We go the drupal way. How about you?
http://www.drupalway.com

what do you mean?

werushka - April 26, 2009 - 06:51

can you be more descriptive...if i have know every detail or things I should provide to you maybe i might had chance to do it myself

add the following line in

mm167 - April 26, 2009 - 08:12

add the following line in style.css (in your theme folder)

div.field-field_yas, div.field-field_cinsyet, div.field-field_sehir {
width: 33%;
margin-right: 1px;
float: left;
}

the 3 fields will be shown in 1 row.

if this works, u may buy me a beer here:
http://www.drupalway.com/node/3

We go the drupal way. How about you?
http://www.drupalway.com

this doesn't seem to work

werushka - April 26, 2009 - 11:01

this doesn't seem to work correctly also browser specific problems but I really appreciate the trick that might have solved it.

should be field-field-yas,

mm167 - April 26, 2009 - 11:28

should be field-field-yas, even the field is named field_yas.
(same as other 2)

div.field-field-yas, div.field-field-cinsyet, div.field-field-sehir {
width: 33%;
margin-right: 1px;
float: left;
}

BUT, even with this error, there should NOT be any error message ..
what error message from your browser? what is your browser? FF? IE?

u may put the lines in style.css and put "before" the body {...}.

We go the drupal way. How about you?
http://www.drupalway.com

1) add the following line in

Igal - October 9, 2009 - 09:20

1) add the following line in style.css:

div#edit-field-cinsyet-0-value-wrapper, div#edit-field-yas-0-value-wrapper, div#edit-field-sehir-0-value-wrapper {
margin-right: 5px;
float: left;
}

2) Configure the "Size of textfield" for fields yas(age), cinsyet(gender), sehir(town)

3) Refresh your browser and try to add content. You should see 3 fields in one line. If element following after sehir also shown in the same line add following defenition in style.css file for this element:

div#the-id-of-element {
clear:left;
}

The result should be like this - http://img44.imageshack.us/img44/3108/09102009110819.jpg

Easy breezy, butterfly. At

Fohsap - October 9, 2009 - 03:58

Easy breezy, butterfly. At least I hope?

http://drupal.org/project/form_markup

It allow you to add HTML before and after a field when using the CCK. Give it a shot?

Man, this takes forever...

 
 

Drupal is a registered trademark of Dries Buytaert.