What is the best practice for files[] property in .info files?

I'm seeing conflicting information as to what needs to be declared in the files[] property of a .info file.

$content fields arrays inaccessible?

Hi,

In my custom node--custom.tpl.php I need to custom process a certain user reference field, "field_user".

First I hide it:

      hide($content['field_user']);
      print render($content);

Now I want to foreach() through the user references, but the $content['field_user'] array looks like this:

Install modules on local machine

Hi.

I am in the process of learning Drupal. I have it all setup and running nicely on my local machine, a mac running MAMP.

My problem is that I would like to install modules through the admin area in Drupal. I can't do this though, as it requires FTP access. I get and error when I try. Is it not possible to use the admin interface to install modules when it is on a local machine?

Cordially
Vayu

Problem with views and node reference

Hi

I'm new to Drupal and I'm having a problem when I try to create a 'view' related to a 'node reference' field in Drupal 7.

I have a content type that references several other content types.

In the view I want to list some fields of the referenced content types.

Until now I've done the following things

-I've created a new view
-In the new view I've added a relationship using the refence node
-I've added an argument id for the main content type
-I've added a field Node link using the relationship I've created before

Acive menu item based on content type

I work with Drupal 7. I have a view news with an overview of nodes with content type news. The view news has a menu item in the main menu.

When I go to the view news via the main menu the menu link news is highlighted. I would like to highlight main menu link news also when I visit a news item page.
But i can't find a solution for drupal 7.

I need something that sets menu item news active when I view a node with content type news.

project usage statistic graph broken but stats fine

Hi,
On the "usage statistics" page of my project, the chart is broken but the stats are fine : http://drupal.org/project/usage/creeper.
When I copy/paste the image link in a new tab, here is what google says about it :

Bad Request
Your client has issued a malformed or illegal request.

Does anyone has an idea of how to fix this ?

Thanks in advance for your help,

David

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x