Theming content type background

I'm sub-theming using Bartik. I'd like to change the background colour of specific content type. I've copied the node.tpl.php, droped it into my own theme template folder and renamed the file to include the machine name of my content type.
I'm not familiar with php... all I need to do is change the bkg. color of this one content type. I've modified the code to include a style bkg. red... as:

why only lowercase, simple names for drupal 4 facebook

why does drupal for facebook have the strange limitation on how it handles naming?

Div closure problem

I am developing a theme and am having a div closure problem on the post page(not sure if I am saying this right).

vimeo plus in drupal 7 is posible???

hi guys , rencecly testing drupal 7 is awesome , but mi problem is i need share "vimeo" private videos in drupal 6 is easy (media vimeo,enfield )private video drupal 7 is not solution ! :S ...
new module for drupal 7 ???
pd: realy need shared vimeo private videos .

How do I find the file storage scheme / stream for a particular field?

I'm trying to write a script that will insert products into a Drupal site programmatically. That part of the script isn't the problem, I have it mostly working. The issue I'm running into is how do I determine the storage scheme / file stream for a particular field?

Let me be more specific... I have an image field, and I know how to upload images into the site's storage area using the file_save_data function.

The issue is that some of my images are stored in different file storage schemes than others. Some may be stored in public://, and others are stored in s3:// (using the Amazon S3 module).

I know the information is in the db somewhere, because the GUI pulls it out and puts it into a form when I edit the field settings. I'm trying to figure out how to get that same data for a particular field through a php script.

So right now I have something like:

$field_storage_scheme = "s3"; 
$dest=$field_storage_scheme."://".$name;
$file = file_save_data(file_get_contents($url), $dest, FILE_EXISTS_REPLACE);

I need to be able to do something like:

$field_storage_scheme = get_field_storage_scheme('field_name');

To get either public, private, s3, or whatever else the field has configured for it's storage in the db.

what is the drupal-install test good for?

hello dear drupal fans

i have troubles in completing the installation - well i do not know why .- btw -

what is this good for :

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x