Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
The most basic form of content on a Drupal site is a node.
3
votes
Accepted
Adding metadata to a node through a module
Your requirement seems pretty straight forward. If you want to save some time, I would suggest that you use the Field API. To make those fields non-editable by users and administrators, all you need t …
0
votes
Panels Node Add form and passing url parameters
You can create your own menu callback using hook_menu (you need to do this from your custom module). Then from your custom callback you you can call whatever callback function is assigned to the diffe …
1
vote
Attach a view to a specific node
You could also do more complex things with Views, such as attaching a View to all the nodes of a particular content type when a user with a certain role is active, just to name an example. …
3
votes
How do you get the nid from an entity id?
In this example Classroom is a content type (entity) with a field called field_students. field_students is a node reference field, and it references nodes (entities) of content type Student.
// Get all …
1
vote
Override node title validation
You can easily hook into the validation process by implementing hook_form_alter(&$form, &$form_state, $form_id) or it's cousin hook_form_FORM_ID_alter(). There you can inspect the $form variable, find …
0
votes
Accepted
How do I transfer nodes categorized with one taxonomy term to another?
You can use hook_update_N() to update multiple nodes at once with a single run of update.php. … Inside it you can load all the nodes that you need to modify using node_load(), and after you are done changing the taxonomies programatically, call node_save(). …
2
votes
Accepted
How to format 'node reference' field values from the Views module
Interesting. Initially it would appear that the "Pagetitle" is being stored in the Last Name field. However assuming that it's not, you can use the devel_themer module to find out what and where is th …
3
votes
drupal commerce product types
Create a product of type "computer".
Then create a list field in "computer" called "computer type", where you can specify "desktop" or "laptop".
You can have another list field named "brand" on the …
2
votes
Is there a way to show a node's comments when displayed in teaser format on the taxonomy ter...
This should filter out nodes based on the current taxonomy found in the URL path. For safety, add a content type filter (regular, non-contextual), and specify "taxonomy term page". …