Drupal is up and running but how do I ...?

All files goes to the same directory?

Hello guys.

I have a site, which works okay now. I'm beginning to write content... I have quite a bit of images. I noticed that they all go to the same directory (files/images).

Won't this be a problem in the long run? I'll have a directory with lot's of files!

Isn't there some way for Drupal to make subdirectories?

Ron.

error: php to add content with cck (panic!)

I'm attempting to import several hundred nodes as a CCK content type directly from a database. I've successfully populated the $node object with my data -- print_r($node) reveals that fact -- but I'm getting an error (repeated 10 times) when the script runs:

Warning: Invalid argument supplied for foreach() in /home/practice/public_html/drupal/modules/cck/content.module on line 375

It does seem to create a node, but the fields aren't populated with any data. I'm starting to panic since my deadline is approaching fast.

I've provided the code from the last part of my script, which is where I think the problem is.

Thanks in advance.

drb


//create node object with a row of data
global $user;

$node=(object)array(
'type' => 'content-opportunity',
'uid' => $user->uid,
'status' => 1, // Set to 0 if you do not want the content published
'promote' => 0, // Set to 1 if you do not want the content promoted to the front page
'sticky' => 0, // Set to 1 if you do not want the content sticky
'title' => $row[job_title],
'field_job_title' => $row[job_title],
'field_facility_name'=> $row[job_hospital],
'field_accepting_j1_visas' => $row[j1_visa],
'field_loan_assistance' => $row[loan_assistance],
'field_opportunity_overview' => $row[job_description],
'field_contact_persont'=> $row[contact_name],
'field_email_contact' => $row[contact_email],

New in drupal, how to change redactors interface

Hi, i start my new drupal site. i used all the last year spip. reading the information i can´t find how to customize the interface for users (redactors) can post information so easy like spip or typo3, with a form or a easy to use, drop and put, tags ands objects (images).
thank you
li.

What exactly does the Survey Module do that the Forms Module doesn't?

Another newbie question.

I have read what documentation there is on Survey - but there just isn't enough that I can find to help me actually use ityet. My question is, what does Survey actually buy me? I installed both Forms and Survey, but I do not see how survey helps me actually create surveys.

How do I easily add multiple images without the use of HTML?

I need to find an easy way for my mother to add photo's to her website without using HTML as it took me ages to just get her computer literate without having to teach her code :D

About the book navigation block

Dear all,

I've enabled book module on my drupal 4.7.3 installation. After I created several books, I enabled the book navigation block in "administer->blocks".

What is stange is that, the book navigation block only appears when I am visiting some book content. This means, the book navigation block does not appear in the front page and so on. Only when I type the /book url, and click some book content, the book navigation block will appear in the desired position.

Pages

Subscribe with RSS Subscribe to RSS - Post installation