Is it a field? Is it an instance of a field? How do I add a checkbox to my new type (or is it a bundle)?

Drupal 7, recent dev version.

I'm trying to create a new 'type' based on the example 'node_example' module. This creates a new 'type' with a body field, a text field, a size field and a custom 'color' field. But I want the type to have a field that the user sees as a checkbox in the node/add/mytype form. Documentation is currently sparse and a little confusing (that's a comment, not a complaint). Can someone please point me the way forward?

"nodes in block" and breadcrumb

Hi,
I have problem to set breadcrumb when I use "nodes in block" module. Breadcrumb creates path according the node placed in block and not the node which represents the page.

Can anybody help?
thanks
Tomas

Should Drupal have Names?

For example, D6 would have nickname1, D7 would have a completely new nickname, as would D8. Just thinking that this would make searches much easier. Looking for shared table information, I keep getting D6 info, even if I type D7 or Drupal 7 in the search box.

Kind of like Ubuntu always having their animal names for releases.

Adding node reference to node on insertion

Hi,

I'm trying to set a node reference on a node when a particular content type is inserted. I try

function modulename_node_insert(&$node) {
switch ($node->type) {
case 'mycontenttype':
$node->field_cont_field['und'][0]['nid'] = 'value'; //set node reference

break;

default:
;
break;
}
}

If I dpm the node after adding the node reference it is there. however, it does not show up when viewing the node after insertion.

What am I doing wrong?

Thanks.

Does jquery 1.4.x break anything in Drupal 7?

Having upgraded to jquery 1.4.4 the latest version I noticed that it broke my Views and CCK in Drupal 6. I am wondering if anyone knows if these problems still exist in Drupal 7. I haven't used D7 much I know CCK is called something else now, not sure about views. Just wondering cause not sure about the timeline on our upgrade and would like to use the jquery addons and widgets for themeing, but also dont want to break admin.

thanks

Please help front page gallery

Anyhelp on this would be great. Basically I need to be able to let users upload photos to there own gallery on there profile but.... Any new photo uploaded will also appear in the "latest images" on the front page.. In the same way that dribble.com does " lots of the latest images on the front page. Being able to tag other users would be great as well.

Any help will be greatly appreciated .

Thanks

Paul

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x