Hi there,

I'm new with drupal. I have built a custom module, which display a form for user input. Now i dont know how to edit that module's display. Form just displays in vertical column, I want it to display something like grid view: "Title : textbox description", also add a small information block beside that.

Any help will be appreciate. Thanks

Comments

tai.lecao’s picture

I just want to change that "view" on this custom module, other part will be the old.

Thanks

roxy317’s picture

form (CCK?), but Node Form Columns may help you with what you are trying to do.

Roxy

Ildar Samit’s picture

Why not use CSS? Something along the lines of label{float:left;} etc...

tai.lecao’s picture

Ya, that's what Im looking for. Is there anyway to implement CSS, JS or something like implement other files that control the template for module?

jaypan’s picture

You can add css using drupal_add_css().

Let's say your module is named 'mymodule'. in the mymodule folder, you have mymodule.css. You can add this file as follows:

$path = drupal_get_path('module', 'mymodule');
drupal_add_css($path . '/mymodule.css');

Contact me to contract me for D7 -> D10/11 migrations.

tai.lecao’s picture

By using Theme to apply Template and CSS, I can solve my problems now.

Thanks for take your time to help me.
Have a nice day.