Hi All,

Can anyone tell me which module is used to display the content types (page,story on a node)

Thnx

Comments

nevets’s picture

What are you looking to do?

dvkd’s picture

Hi nevets

i have created a content type called Student info , and with fields Student Name, ID,Age

In page it is displayed like this:

Student Name:
John
ID:
12
Age:
22

But I want to be displayed like this:

Student Name:
John

ID:
12

Age:
22

or i want to be displayed like this:

Student Name:John
ID:12
Age:22

Can u please tell me how to accomplish this,
Thankx

nevets’s picture

You can do that using css. In the first case you would add a margin to the wrapper div to get the spacing. In the second case you need to set the display type to inline for the correct elements. Details in both case depend on the generated html.

Anandyrh’s picture

Open style.css file in your theme folder,

Add display: inline; in to div.form-item label style in your style.css file.

Example:

div.form-item label {
  display: inline;
}

to get this kind of output:
Student Name:John
ID:12
Age:22

Regards,
AnAnD

dvkd’s picture

Hi Anandyrh,

Thanks for ur response , but icould not find div.form item label in my style sheet (i am using Inove theme),
i copied and pasted the code sinipet which u gave ,but its still not working , Wat do u?

Cheers

Anandyrh’s picture

Please try pasting this code at the end of your style sheet.

div.form-item label {
  display: inline;
}

Regards,
AnAnD

Anandyrh’s picture

Because me too was facing the same problem, then solved it by using that code.

dvkd’s picture

Hi Anandyrh,

I placed the code at end of style sheet :-) , but still doesn't work, any other modifications are there?,
please help me .

Thanks

dvkd’s picture

Hi Anand,

Should i do any changes in page.tpl too?

Anandyrh’s picture

No i dont think so.. But that code was suppose to fix your problem.

let me check for an other way.

Regards,
AnAnD

dvkd’s picture

I am using Drupal 6, Anand

Anandyrh’s picture

Just try this out please...

form-item label {
  display: inline;
}

(or)

.form-item label {
  display: inline;
}
scarer’s picture

Views 2 in Drupal 6 should have everything you need.

dvkd’s picture

Hi Anand,

I could find these codes in style sheet of my theme:

div.admin .left {
float:left;
margin-left:1em;
width:45%;

}

div.admin .right {
float:right;
margin-right:1em;
width:45%;
}

so I think div. is needed
and i followed which u gave me still not working

Thank u

dvkd’s picture

Hi Anand,

The code which u gave:
div.form-item label {
display: inline;
}

works for those items which appear inside a box, the one which was cerated by user,
but it is not working for default fields, contents . any other oprion?

Anandyrh’s picture

ok,

Check the source of your content, check which style is applied to the field and set margin or padding to thar pirticular style in your style sheet.

dvkd’s picture

Hi Anand,

This worked :

div.field-label {}

Anandyrh’s picture

Ohh!
Thats Great!

Thanks & Regards,
AnAnD

dvkd’s picture

Hi Anand,

Can any please let me know how to hyperlink a field value.
Example :

Name: John

John should be hyper linked, if user clicks on it it should return to send mail to John.
(or) how to get link next to the name
Thanks

Anandyrh’s picture

Use Views

dvkd’s picture

Hi Anand,

Any idea where to modify inside view , is there any code to be included,

Thnks

Anandyrh’s picture

You can do this using Field properties in the views