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

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
28 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
8 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
10 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
20 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
38 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
34 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
17 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 ...
-1
votes
0answers
16 views

Drupal error Notice: Undefined index: #value in media_pre_render_text_format()

I am baffled as to why this is happening. This error just came up and its causing all sorts of issues on my Drupal site. The changes I make on my nodes are not saved and this error just keeps popping ...
0
votes
1answer
12 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 ...
0
votes
2answers
29 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
11 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
16 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 ...
-1
votes
0answers
20 views

how to connect Neo4j (DB) with Drupal 7? [closed]

We have a problem with connecting Neo4j DB to Drupal 7, is there anyone have a solution or plug-in for it? Requirements for plug-in or solution. Match of skills (Nodes) Recommendation engine / ...
0
votes
1answer
30 views

Node id in views template

Sorry if this question has been answered already but I couldn't find an exact answer. Maybe I'm missing something. Context of my issue: I have a view that lists fields of certain content type. One ...
0
votes
1answer
19 views

How to insert block into Article content type?

I haven't found any option or module to achieve this yet. I started to think I should do this by inserting code directly into article, but this would not be really good/easy solution on regular ...
0
votes
1answer
32 views

Add a popup text link to a specific “create content” page

I've looked everywhere and can't find an answer to my problem. I'm trying to do something that seems like it would be relatively simple, but I keep coming up empty: add a pop-up text link to the ...
0
votes
1answer
9 views

How to get last_comment_timestamp for a node

Can someone tell me what table to look for to get the node's last_comment_timestamp? Thanks.
0
votes
0answers
15 views

Trouble enabling view modes for content types

I have a custom view mode and need to enable it for a node type. I need to enable it through my module, and it seemed like hook_entity_info_alter() is the way to go, but it's not working. Am I ...
0
votes
1answer
19 views

Is using nodes for a notification system a performance concern?

I am building a user activity notification system whereby each new notification message is created as a new node which is displayed by Views. To prevent an infinite number of nodes being created there ...
0
votes
0answers
14 views

Custom PDF Generation with mPDF

I am trying to create a custom pdf using the mPDF library. I have created a test tpl by using pdf--node--it01a4.tpl.php where it01a4 is the name of the node type. I have tested the location of ...
0
votes
1answer
32 views

Pages on which this PHP code returns TRUE

I have a problem with this function in drupal. I have a block and I only want to show it if a specific condition is met, the problem is it does not work as I imagined. This is what I want: <?php ...
0
votes
0answers
12 views

Computed field display based on user id

I have content type name "applicant profile" which all the applicant need to fill up their details and information in this content type..the title for this content type is based on applicant name.. i ...
0
votes
1answer
20 views

Layout detail node + ckeditor layout

When I create a node of content type Proposal like this: I can add images, paragraphs, ... . But it looks like this on the detail page of the node: No image, no paragraphs, ... . What could be ...
0
votes
0answers
10 views

How can I display the list price field in product page?

I am new to commerce Kickstart. I can add the list price field in hats content types. But i can't to show the list price field in product page. I don't want to show the SKU field in product page.In ...
0
votes
0answers
13 views

taxonomy_select_nodes with date range - drupal 7

Im using taxonomy_select_nodes to get all the nodes by passing taxonomy id. I need to get nodes between specific range. Is it possible to pass date range to this function? Thanks!
0
votes
1answer
19 views

Add multiple co-authors while creating node

I have a content type proposal. Now I would like to have multiple co-authors of the node. I want to give the author the opportunity to add users like this: The users have to be entity references. I ...
0
votes
1answer
23 views

How to redirect user when new node save by ajax in advance form block drupal 7?

I have a website in drupal 7. I used advanced form block module to create add form block. Advanced form block module create block for form to edit and add new content. All node saved by ajax ...
0
votes
1answer
15 views

Drupal 7 Webform Components Related To Individual Nodes

I am attempting to create a decision making "questionnaire" in Drupal 7. I am currently using the Webform module to create the questionnaire. The questionnaire (webform) will create a list of related ...
0
votes
1answer
13 views

Translated node overwrites other languages

I have a content type with a multivalue text field. Each time I add a translation, the translated node overwrites the source node. Also happens in opposite direction. It seems that whatever I do, the ...
0
votes
1answer
27 views

Alter display of jQuery Calendar Popup

I've got a Date field on my content type and I'm using the jQuery pop-up calendar as the widget. The html rendered for it has extra stuff that I'd like to strip away, but I can't find a way to ...
0
votes
1answer
19 views

Rule to fire only on first time publish of node

We are using workflow moderation for some content types and sent out emails to the author once a node has been published. Sometimes we have the case that an author changes a node after he has been ...
0
votes
1answer
7 views

Bulk change radio button setting in admin/content using database

I am using a paywall module called TinyPass where I have to check a radio button in order to activate the paywall for a specific node. I now have a situation where I want to uncheck (or deactivate) ...
-1
votes
0answers
13 views

I want to add the list price field in hats content type and show the content in node--product-type.tpl.php file?

I am using drupal commerce kickstart. I am adding list price field in hats product type. . I want to show this field in product page. How can i add this field in node--product-type.tpl.php. ...
0
votes
0answers
13 views

Links w/ drupal, why is it embedded like this?

http://i.gyazo.com/8d731c8e3154a9d70a56cac28581693e.png I am wondering why the link is embedded and blue. I cannot replicate this effect or remove it. If I click on the link it takes me to the ...
0
votes
0answers
9 views

Node export after a given date?

Is there a way to use the node-export module (or another module) to export all nodes after a given date? I have a site where the materials are being entered daily and I want to capture all the entries ...
0
votes
2answers
19 views

List all nodequeues a node belongs to

Given I have a node, how to programmatically find out all the nodequeues it belongs to? Is there any ready functionality in Drupal 6 or do I just have query this from the DB myself?
-1
votes
1answer
31 views

Adjust page based on content (add HTML formatting, script tags, etc)

In Drupal 7, I have a system where the content creators of a node can use special characters within the text content of the node to set up special layouts that are translated to additional HTML, ...
0
votes
0answers
17 views

Forward module with colorbox node in drupal 7

I'm using Forward to share the particular page to their friend. Everything is fine except one, I need a forward module form in popup for that he provide option in forward module by enable the ...
0
votes
0answers
11 views

Flagging Form integration with node reference

I'm currently doing recruitment system by using drupal 7.. In my system, the applicant need to fill up one time online resume if they want to apply the job. I create a content type name "Applicant ...
0
votes
2answers
24 views

Is it possible and reasonable to convert a complicated, heavily styled html page into an editable Drupal site page?

I already read this: How to convert an HTML website to Drupal 7 nodes? and this: https://www.drupal.org/node/313510 and some more. Hello, I have been tasked with creating an editable version of ...
0
votes
1answer
29 views

Why i get the error “Call to undefined function node_object_prepare()” while i try to add a node programmatically in Drupal 7?

i'm trying to add a node content programmatically from a custom module file. I have created the .module file and used this code as suggested: $node = new stdClass(); // We create a new node object ...
0
votes
2answers
35 views

How to pull node history into a view

Is there a way to add a relationship to the node history table in views. If not, is there a module which can do it? As it turns out the history table is already available under views as part of the ...
2
votes
1answer
27 views

7 - Panels node form, file/image gets removed when field not present in the custom form

I am using Panels to customise node forms by separating them into multiple pages. On one page I have text fields and on another file/image fields, when saving the text field form variant all the ...
0
votes
0answers
9 views

Configure Menu block visibility based on URL and a User field

First, I have a content type: Department Additional content types: Post, Article, Event, etc. using Node Reference (Reference From URL) User have Entity Reference (Department) [field_department] ...
0
votes
5answers
69 views

Load just one field from node

I have x nodes with field named "thefield". My script is checking "thefield" and if he does so the right value is updated. How can i get from node just one field for check and didnt load full entity ...
0
votes
0answers
29 views

Images not shown in View Mode Teaser

I have a content type teaser with an image field and display these teaser in a panel layout. This works perfect if I choose the Build Mode "Full Content" in the Panel Settings for the content. I ...