Newbie Questions...

I'm still confused about what exactly a node is. I have a database of car parts. When I migrate them over, they become individual nodes? Is that what is happening? Thanks in advance.

Creating Graphs and Charts From A Dataset


I am trying to determine the best way to implement the ability to create reports (charts, graphs, etc) from a set of data that I have related to employee performance. There seem to be a plethora of modules which allow you to view site statistics however, I have been unable to find any modules that will enable me to create a graph from arbitrary data that I import.

I also am trying to determine the best way to store the data I have. As a node? Directly in the database?

Does anyone have any ideas about this?


Subdomain, subdirectory, and static content - oh my!

Our Drupal instance is currently configured to support subdomains. So we currently have: on and so forth.

The root domain is used to serve up static content. Any requests to* get handled by apache.

We now have a request to create a new drupal site as a subdirectory. I've seen much documentation for multisite installations but it appears one needs to choose either subdomain or subdirectory. I haven't seen specific articles on how to make this happen on the same system.

Zen-Theme: Logo in Sidebar; Content over whole width

hello everybody,

i would like to build a 2-column fixed layout with zen, left column=navigation, right column=content.
i want the logo to appear in the left sidebar, just over the navigation-menu and the content-area should reach to the top of the viewport (i.e. the logo should stay only in the left column, not covering the content-area).
i did override the page.tpl.php to re-arrange the output-order of the logo, but i didn't get it.
can someone give me a hint what to change in page.tpl.php / css?

thanks a lot!

Setting image field as background image (drupal 6 vs drupal 7)

Hey guys, I used to do this nifty trick in Drupal 6 to set a cck file type as a background image. I used the following code to do nothing but print the file's directory path in the page type's template:

Form preprocess, missing <form> tags


i'm developing custom module, with quite large entity with lots of fields. i'm having trouble getting template preprocessing to work as expected.

the problem is that when ever i try to do any preprocessing on the form elements, the <form> tag doesn't get printed.

for example, this works as expected:

  in preprocess -function:
  $variables['rest'] = drupal_render($variables['form']);

  and in the template file:

but if try and extract form elements off from the form variable:

$variables['rest'] = drupal_render_children($variables['form']);


the form prints as expected, apart from the <form> tags.

i have the whole form wrapped like so, because of the ajax updates.

$form['#prefix'] = '<div id="order-form-wrap">';
$form['#suffix'] = '</div>';

and the theme is declared like so in module_theme() function:

'order_add' => array(
      'render element' => 'form',
      'template' => 'orders-form', // TemplateFileName.tpl.php
      'path' => drupal_get_path('module', 'module_name'),

suppose that i'm missing something fundamental here, but just can't figure out what it is.


Subscribe with RSS Subscribe to RSS - Drupal 7.x