node--article.tpl.php NOT BEING USED

I am subtheming the adaptive-theme base drupal 7 theme. I've create a template called node--article.tpl.php that I would like rendered for articles, with all the rest of the node types rendered with node.tpl.php. The node--article.tpl.php is never used, only node.tpl.php in the same directory.

I have also tried adding the following to template.php in the subtheme to no effect.

function mytheme_preprocess_node(&$variables) {
$variables['theme_hook_suggestions'][] = 'node__'. $variables['node']->type;
}

What am I doing wrong?

Thanks

Drupal 7.0 RC 2 Released

Release candidateUpdate: Drupal 7.0 Release Candidate 3 is available now!

We are proud to present to you the second release candidate of Drupal 7.0. Although there are still a few known issues that we are working on fixing, we are confident that our code is stable enough for wider testing by the community. Since the last release candidate two weeks ago, we have fixed upgrade path bugs, improved styling in the default "Bartik" theme, numerous bug fixes and improvements to strings, and fixed a critical bug preventing default Views from working. For the full list of changes, see the release notes.

The first alpha announcement provided a comprehensive list of high level improvements made since Drupal 6.x, so in this announcement we'll concentrate on how you can help ensure that Drupal 7 is released as soon as possible and is as rock solid as the previous Drupal releases that you've grown to love!

There are a number of modules already ported to Drupal 7 for your testing pleasure. You can keep tabs on whether or not your site is ready for Drupal 7 by using the Upgrade Status module. If you are a translator, now is the time to start working on your translations. If you are a module or theme maintainer, now is the time to start working on the update to Drupal 7! Read on for more details.

Form #submit arguments.

I've created a list of items in a form. No sweat. But now, I need to delete just one of the items no matter where it is in the list. So I need a command attached to a "Remove this item" submit button. That calls this function

function remove_selector($form, &$form_state, $item_id) { 
  //remove item with matching $item_id
 }

I dont know how to pass the $item_id argument from a form #submit. It seems like I can only call the function itself and not pass any arguments. Any help on the matter?

Thanks.

Unable to add additional taxonomy terms on the term widget

I've set up a content type with a tagging field and I can successfully add multiple, comma-separated terms into the term widget only when I am creating new content. If I edit existing content and try to add additional tags, the change doesn't register at all. The terms aren't added to the content and they aren't added to the taxonomy either.

The term reference widget is set to accept unlimited terms... Why can't I add any more terms when I'm editing content?

Drupal 7, What changed in returning a string on form submit handlers?

In previous versions of Drupal, I could return a string in the submit handler and it would print in the content area of the page.

In Drupal 7 however, it seems that no longer works. When I submit, the form just reloads. I am positive my submit handler is getting called.

Any insight would be greatly appreciated!

Example:

Problem with creating custom field types.

Hello,
Im writing a module for Drupal, which will be able to create the questionnaires. To achive that, I want to define some fields that are not implemented in Drual core. The example of the fields would be Linkert Scale (specific radiobuttun group) or Numericbox (textbox only for numbers). I would like to use that components like this:

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x