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
6 views

Node Hook Returns Syntax Error To Hide Price Until Added To Cart

I have been trying to write my first module. Please be gentle. This module is a node hook that hides product price until added to cart, similar to "See Price In Cart" functionality on many websites. I ...
0
votes
1answer
5 views

Getting error rendering same node in different view mode

Unsupported operand types in /node/node.module on line 1419 On my site users have the ability to flag a content type (node) as being featured on the right rail. I then have a view that renders a ...
0
votes
1answer
13 views

How to print a view in node.tpl.php only if it's not empty

Views can be printed in tpl.php files with this code: <?php print views_embed_view('myview','block_1'); ?> However, if that view is empty, the view block code will be printed anyway: <div ...
0
votes
1answer
17 views

CCK Date field not showing stored values in node edit form

After moving a Drupal 6.x site to a new server, I've found that a CCK date field being used by multiple content types is not displaying the values that are stored in the database for the field OR the ...
0
votes
0answers
12 views

Very slow on entity_metadata_wrapper save

I have a content type with 30+ fields. When I set values for 25+ fields and save the node using entity_metadata_wrapper->save(). It takes more than 2 seconds to save the the node. However, if I set ...
1
vote
3answers
86 views

set nid manually

I created some nodes, e.g. 100 nodes with corresponding node IDs 1-100. Then some of the nodes are deleted, e.g. nid=50 is deleted. Then I want to create a new node and set its nid=50 – what is best ...
0
votes
1answer
31 views

Live Blogging with Drupal

I'm looking for a solution for liveblogging with Drupal 7. This means to create fast new nodes without too many clicks. Does anyone know such modules or modules which help to implement this? After ...
0
votes
2answers
32 views

Make almost duplicate copy of node when submitting

We have a meeting room booking system that needs one extra feature added. Meeting rooms 1 and 2 have a removable wall so people can book Room 1, Room 2 or Rooms 1 and 2. What I need is a way during ...
0
votes
1answer
24 views

Node reference - limit so node can only be referenced once

I have two nodes 'Runner' and 'Buddy'. I'm using node reference to create a select list of buddies on the runner node. The Idea is that every runner only has one unique buddy and two runners don't ...
0
votes
0answers
4 views

Multistep Add Node Form Different Layout

I'm trying to create a node form with multistep. This is for creating an "Event", as for now I'm using the node/add link to show the form with the use of field group module. The Multistep module and ...
0
votes
1answer
11 views

Path (alias) does not work after migration, nor Content view

I'm using the migrate (7.x-2.x-dev) module to import a node(s) from static HTMLs to Drupal 7, and I want to set the path the same as the original directory/filename. I have defined in my migration ...
-1
votes
0answers
20 views

If no search results, how to create a node programmatically with title = search string? [closed]

I would like to build a small module (which will be released for free to public) that does this: Let's say a user searches something and there is no result. I want to present him a message telling ...
0
votes
2answers
18 views

Views Block: one node latest of several categories

Is it possible to do with the views I had one recent node of the 5 categories? example: - Category 1 (20 node) - Category 2 (10 node) - Category 3 (5 node) - Category 4 (17 node) - Category 5 (2 node) ...
0
votes
0answers
38 views

Different URLs for the same node

I want to have make a node accessible via 2 different url. I want to apply a different theme on every one of theme. They will be event/id and app/event/id. There will also be a third alias via ...
-2
votes
0answers
15 views

How to call a custom function after a node edited?

How can i call a custom function from my module after a node edited. There are some custom module operations are takes place in the hook_node_update and hook_node_presave. So i want to run my function ...
0
votes
1answer
15 views

How to get newly created node ID after Feeds importing?

I programmatically executed feeds importer to create new nodes. I have to set some fields programmatically after importing. I check the hooks in feeds.api.php, and didn't find a solution. Is there any ...
0
votes
1answer
24 views

Drupal 7 views page path/url matching?

Our former website (that was hooked with Google Analytics) had the following URL (i.e. Example URL) for a staff member: http://www.example.com/research/teams/staffname.html I have recently ...
0
votes
1answer
27 views

How to query the last nodes of multiple content types?

I want to query last 5 nodes of multiple content types, say, typeA, typeB, typeC, typeD. It was originally only one content type, and I did it using EntityFieldQuery: ...
3
votes
2answers
32 views

How to reset 'new' and 'updated' flags without visiting a node page?

In my drupal site I have a content type that has its nodes visible only in a view and they have always the 'new' (or 'updated') flag up for all users. How can I reset the flags without visiting the ...
0
votes
0answers
11 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
7 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
20 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
9 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
78 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
21 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
32 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
28 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
16 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
9 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
38 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
28 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
24 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
9 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
16 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
27 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
46 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
2answers
41 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
31 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
23 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
40 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) ...