This tag is for questions regarding the use, reuse and manipulation of nodes, the most basic form of content on a Drupal site. While nodes are implemented as entities in Drupal 7, this tag should be used instead, unless specifically referring to Entity API functionality.

learn more… | top users | synonyms (1)

0
votes
0answers
9 views

Compare 2 collections of checkbox choices

WHAT I HAVE NOW: When the user registers they have choose their interest in topics, they can check multiple checkboxes. These checkboxes are a term reference to the vocabulary topics (there are terms ...
0
votes
0answers
6 views

Send private message - Subject and message filled in

I'm using the module Privatemsg to give users the possibility to send messages to other users on the website. What I would like to do is: A button on the detail page of node with type equal to ...
0
votes
0answers
14 views

programmatically creating a new node without a revision

I create new nodes programmatically this way: $node = new stdClass(); $node->type = "page"; node_object_prepare($node); $node->title = 'test'; $node->uid = 1; $node->changed_by = 1; ...
0
votes
0answers
7 views

Commerce: View Product Content Type And Variation Type In Product Display

This may be so self-evident I can't see it but... Is there a way to indicate on a Product Display what Content Type and Product Variation is being displayed: eg. 'Bags', 'Drinks', 'Hats' This would ...
1
vote
2answers
71 views

Performance issues with big amount of nodes

In the last couple of months I was working on renewing old project's platform from Drupal 5 to Drupal 7. The last step was to migrate old data (from the past year) to the new system. For this purpose ...
0
votes
0answers
15 views

Get nodes of taxonomy: drupal 6

I want to show nodes of a taxonomy. when i'm using this, it shows me children of my taxonomy not nodes, can someone help me plz? function louvre_web_service_selections() { $tid = 145; $view ...
-1
votes
0answers
20 views

Submit a File Field to Webform Programmatically

I have a webform node that I can submit data to it using codes below: $data = array( $fieldId1 => array('text1'), // Textfield $fieldId2 => array('value1'), // Select options ...
1
vote
0answers
31 views

Drupal and cache in node_load

I have written a simple module for counting node views. For each nid I store 2 numbers: impression and view. 1 Impression is when the node is loaded and visualized in any display mode (teaser, views ...
0
votes
1answer
26 views

Migration of data from old site to new

I am working on data migration from old site to new site. Which module i can use for data migration. I am stucked in the issue that fields are not same in the old site and new site. How can i map ...
0
votes
0answers
15 views

Node Automatically Scrolls to Comments on Load

For some reason, one of my content types scrolls to the comments section of the node every time it loads (instead of starting you at the top of the page). Disabling comments for that node solves the ...
0
votes
1answer
16 views

Easy way to create author account on node creation?

Is there an easy way to add a field that will automatically create an account for the author with the specified email address if that address doesn't exist? I have to enter information for new and old ...
0
votes
0answers
19 views

Pre fix field_type in Drupal Node Add public form

I'm using this: How do I embed a node creation form inside a view (top rated answer) to implement a node add form for front-end users in an iframe. Now everything works perfect with: <?php ...
0
votes
0answers
8 views

How does Views Node Field module manifest itself in Views UI?

I've installed the Views Node Field 7.x-1.0 module, but can't figure out how to access its features in the Views UI. Given an existing view, what are the steps to get to where I can add a Teaser as ...
0
votes
4answers
35 views

Making nodes from XLS files

I'm trying to add a +2000 video database (stored on youtube) to my website. I have an excel file with on every line the video title, the url and the keywords. Is there an easy way to automate this ...
0
votes
0answers
11 views

Prepopulate a field in a Reference Dialog Box

I have 2 content types named Incident and Migrant. Both of them have fields that reference each other. My question is how to prepopulate a field in a reference dialog box while the node is being ...
0
votes
1answer
18 views

How do I disallow blocks from showing on all node edit pages?

So far I have tried "All pages except those listed" node/0/* node/edit node/%/* node/%/edit/*
0
votes
2answers
26 views

Fetch node value in Rules

I am trying to get option value from node in drupal rules. I have a form-group which consists of fields. The field in question is a select list - it consists of different names, with every option ...
0
votes
1answer
23 views

Clone several nodes

I'm searching a module to clone several nodes automatically when i create a project node type. To explain better : When i create a new node of Project type for exemple, i need to clone some nodes and ...
0
votes
0answers
7 views

Taxonomy terms not showing up in drupal 6

I updated the drupal 6 site via drush, moved all of the modules into the correct places, but the taxonomy terms saved using the form attached to the content type does not appear on the node ...
0
votes
0answers
14 views

How to skip render/print node if condition was done drupal 7

Im build a custom module for display a content dependence of location, my problem is in last step, how i can stop render node if its from defferant location ?, its maybe like view, if you selected ...
0
votes
1answer
17 views

hook_form_node_type_form_alter does not work

The sort comments module has a function in sort_comments.module as below: /* drupal@ganovelli.it - blackice78 */ define('SORT_COMMENTS_OLDER_FIRST', 1); // default ...
0
votes
1answer
29 views

How to restrict user posting a node in certain circumstances

I've created a new user role (country_admin) and I have created a field for these users called user_country. This can be set when registering a user to UK or USA. I have created a taxonomy ...
0
votes
0answers
19 views

How to include external content without iframe in D7?

In Drupal 6, there was Wrapper: A module that could render the output of legacy web software (both local or remote) into a Drupal context. How to do this in Drupal 7? I do not want to use iframe for ...
2
votes
2answers
40 views

How to load XML to SWF on each node?

Here is my problem: I have 2 SWF files for a crossword puzzle: first one is for creating puzzles and outputting XML files upon clicking the "Save" button and second SWF is displaying those puzzles to ...
0
votes
0answers
26 views

how to read all the nodes and its fields and display like table?

how to read all the nodes and its fields and display like table? I have node/content caled TravelInvoice Invoice Number Invoice Date Student Number Months Paid (List Field) - Apr to March some ...
0
votes
0answers
20 views

Grab image title description from link to article [on hold]

Is possible to make node type in the way like facebook share. Like an Example: After inserting link in node,drupal generates info with image, title, desciprion from that link.
0
votes
2answers
34 views

Hook Form Alter Specific Node

I want to put a hook to a form on one specific form that I created. Based on Node ID. The code i currently have is . function jhumobileform_form_alter(&$form, &$form_state, $form_id) { ...
0
votes
1answer
30 views

Is it possible to disable a node module?

Is it possible to disable a node module in Drupal 7? As I understand through interface it is not possible. Why node module is so important? What if I'm going to use only custom entities?
2
votes
1answer
29 views

rules autotag module, bulk retagging existing nodes

I am using the rules autotag module. It's working fine for adding new nodes. But what would I do for retagging existing nodes (approx. 40,000)?
0
votes
1answer
20 views

Adding multiple HTML pages as nodes as part of workflow

I've just started using Drupal. I'm in the process of building my first web site (I'm not a web designer but have a reasonable knowledge of html, css and python and some comprehension of the DOM). My ...
1
vote
0answers
21 views

Node edit form in overlay for selected content types

I am using Drupal's core Overlay module along with Overlay Paths to display certain forms in overlay pop up. I have three content types and for one content type I want the node edit form to appear in ...
1
vote
1answer
34 views

How do I add classes to read-more link and add-comment link on node for bootstrap 3 [closed]

Witch preprocess function let me add btn classes from bootstrap 3 to the two links at the bottom of every teaser in Drupal 7? I tried the following. function meetu_preprocess_node(&$variables) ...
1
vote
1answer
43 views

Performance: Efficient use of EntityFieldQuery (with node_load OR node_load_multiple) to update thousands of nodes with/without conditions

I have script that queries a system called Symplectic for publications of over 30 users (each authored over 300 publications). Most of the publications are authored jointly by more than one user. I ...
2
votes
2answers
29 views

How are node and node_revision tables related?

I've noticed that the following does not work to unpublish nodes: db_update('node') ->fields(array('status' => 0)) ->condition('nid', $array_of_nids, 'IN') ->execute(); But it ...
0
votes
0answers
35 views
+50

Import a custom field type record and relate it to a node

I've created a module for a custom field type which selects images from cloudinary. Is there a way to dynamically add entries as part of an import script? I've tried updating the database directly, ...
0
votes
0answers
14 views

Returning a variable from a rules action

I am trying to create a variation on Fetch Entity, and I'm having trouble returning an entity. I'm just grabbing the data using db_query, and trying to return an array of nodes that are loaded, but ...
1
vote
1answer
31 views

Get a configuration option from node type structure

I'm working on a module and was wondering how to get a node type setting (that was set when creating the node type at: admin/structure/types/manage/YOUR-TYPE) inside a node creating/editing page. I ...
0
votes
0answers
9 views

Poll field options getting duplicated

I am using a Poll Content type. I am using a client/Server architecture where i am importing content from the server side using Services module. During first import i am able to get the node values ...
0
votes
0answers
10 views

Program a pre-set value for a form block?

I have a simple custom module that creates a form block. We use this block to post content into a panel without the use of the PHP module. We wanted to know if it was possible for us to set a ...
0
votes
1answer
12 views

How to remove reference field value after delete its reference node

Let say, I have 2 nodes. 1) In first node, I have added reference node as existing node, i.e "Test node [nid:2]" 2) I just deleted nid 2 3) Went back to see first node by editing and noticed that ...
0
votes
0answers
21 views

Enter presence and assign marks for multiple students at once

I'm building a teacher register web application with Drupal 7 for our school. I have a Chair entity, which references the Class entity and the Teacher role. The Chair entity references also a taxonomy ...
0
votes
2answers
42 views

How to prevent to show comment by default

I've added a node.tpl.php for my content type ("Article") . Now in my article node i got two comment area . How can i disable default comment?
0
votes
3answers
36 views

hide a DIV on node edit form, but display on node creation

I have a field that is part of a conditional related to several field collections. As such, it needs to be rendered when adding or editing a form. However, once the node has been created, I don't want ...
0
votes
1answer
19 views

javasript invoking custom module to update user response

I have created Multiple choice questions in drupal . One node (page ) has one mcq . The answers are displayed by simple radio buttons and javascript . Now I am planing to give some dynamic behavior ...
0
votes
0answers
8 views

comparing old/new table values

I'm building a site which needs the ability to show a daily market values table, that is daily fed by the admins. The idea is to compare the previous value for each cell and depending on the ...
1
vote
1answer
21 views

Is it a good idea to mix node api and entity api?

I have a custom module that depends on several contrib modules. One of the contrib modules has a new version out and has switched to using entities. The code in the custom module is using node api ...
0
votes
1answer
13 views

Non-directional/symmetric relation between nodes of the same content type

In a Drupal 7 website I would like to create an "is similar to" relation between nodes of the same content type. The nodes are vessels (ships) and a vessel can be similar to several others. Think of ...
1
vote
2answers
54 views

set specific time to cron for specific php script

Actually i want all unpublish nodes to be delete automatically whose created date is 2 days ago. I can write php script for that and also include that code in hook_cron api. but i am confused that my ...
0
votes
0answers
13 views

Trouble with module “node compare”

I have installed the module node compare. You can compare fields of every node type with this module. I selected about 19 fields to the comparison table but only twelve appear. I posted an issue but ...
0
votes
0answers
17 views

Refer to comment node in CKEditor

I would like to have a reference to a comment in my node detail. For example when I create a node of content type = Proposal and someone comments with a good argument I would like to add the ...