[development] How do you create content for story by updating the database directly (what tables need to be updated?) instead of using the Drupal web application?

Mohamed Jadelrab jadelrab at gmail.com
Mon Apr 12 09:21:03 UTC 2010


Hi John,

I think you want to create a script to populate the database directly, I
will advise you to use drupal_execute() :
http://api.drupal.org/api/function/drupal_execute/6 as it will maintain the
insertion of other fields as well like the author, created, and it will keep
you in the same context of adding the content one by one ..

if you still want to populate the database you need to check :
http://drupal.org/node/82661 CCK Overview , even it still needs to be
updated.

Regards,

On Mon, Apr 12, 2010 at 12:14 PM, John Mitchell <mitchelljj98 at gmail.com>wrote:

> I have added two fields called latitude and longitude to the story content
> type.
>
> I then created content for story using the drupal web application and
> populating the Title, Body, latitude and longitude fields.
>
> How do you create content for story by updating the database directly
> (what tables need to be updated?) for the Title, Body, latitude and
> longitude fields instead of using the Drupal web application?
>
> Thanks,
>
> John
>
> --
> John J. Mitchell
>



-- 
Mohamed Jadelrab
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20100412/775158b6/attachment.html 


More information about the development mailing list