Drupal 7's settings.php

The setting.php is different from Drupal 6, where does the database configurations go in D7?

Help understanding Drupal multi-sites

I am trying to set up a Drupal 7 multi-site on shared hosting. I have read many tutorials, but most of them are for Drupal 6 and, apparently, the set up process is very different for Drupal 7.

I have found two very detailed tutorials for Drupal 7 [1] [2] and have followed them but I can't get them to work.

I think it might just be my understanding of the process which is wrong, and so I have a few questions:

1) When setting up a multi-site on shared hosting can the multi-site be set up in its own separate directory or does it have to exist in the root directory of the shared host?

2) A drupal website has the several folders (e.g. includes, misc, modules, profiles etc)
It is my understanding that in a multi-site, there is only one instance of all these folders.
The one exception to this is the sites folder, where there will be a separate sites folder for each site that is hosted on the multi-site (e.g. car-site, beauty-site etc). Is this correct?

3) On a multi site the sites folder is to be set up like this:
(Image of Directory)
Is this correct?

how to set field default with php code in D7

In migrating to D7 I notice that the option of setting a default value for a field with a bit of PHP code has disappeared from the field settings. Is there some way to get the equivalent function?

Thanks.

Trying to make a views list with different content types

Hi, hopefully someone can point me in the right direction. I have two content types, stories and links. I want to make a views list that displays the titles of the most recent content on my site. I would like to be able to have a little icon next to each title, indicating what content type it is. How would I do this? Thanks.

Font Size Changes in Bartik Subtheme

New user here; hope this is the right place for this. I created a Bartlik subtheme in 7.7 following the instructions given in http://drupal.org/node/1114190. I was finally able to get the color module to work, but when I revise the style.css file to double the site name size, the font size change is not picked up. Here's the section that I modified:

}
#site-name {
font-size: 3.6em;
color: #686868;
line-height: 1;

Programmatically fetching nodes and ordering them by weight

Hi all,

Starting to pull my hair out now... I've one last thing to do on my first Drupal project (which I've probably botched to bits in respects to proper Drupal coding...), and this involves programmatically fetching and ordering nodes of a certain type from the database.

So my question: how can I get a node's weight, or, even better, directly order them by weight when fetching? Which table is this saved in? Is there no direct property of a node holding this info? Is this functionality not actually built-in in Drupal 7?

Thanks for any help! :)

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x