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
1answer
20 views

How to add galleries to nodes in Drupal 7

I have site with news, and I wont to make it possible for admin to add image gallery to articles (nodes) he wants. So, the idea is to make gallery image field for every content type from which images ...
0
votes
3answers
35 views

get nid of created node in custom submit and Page redirect after save

I am using Drupal 7. I have created a content type called person. And I have customize my node person adding form with custom submit button . But uses default Drupal node save function. I just uses ...
1
vote
1answer
20 views

D7 node index without comment

I use drupal core search. When I build node index, I found it contain its comments. But I don't need them. Does anyone have a good idea about node index without comment. I found a similar question ...
0
votes
0answers
19 views

Creating a list of node-options in different node

I am looking for a way to list nodes in a different node. Not sure how to explain this, so I will do it with an example. Let's say I'm for example making a website for a Tennis tournament, this is ...
0
votes
0answers
14 views

How do i print field collections which are a field of another field collection in node.tpl.php files?

I am using the following code to embed a field collection inside node.tpl.php files: <?php global $base_url; $wrapper = entity_metadata_wrapper('node', $node); $formtype = field_get_items('node', ...
0
votes
0answers
17 views

How to change the title of a content type only in the admin listing

I am using the biblio module for scientific publications. In the admin content listing, instead of the publication's title (which can be very long) I'd like to see something like FirstAuthor Year, ...
1
vote
2answers
16 views

Changing label on node edit form

I want to change a label/string on a node edit form for a date field. The label is, "Show end date" - I want to change this to, "Show end date (optional)", but I can't find where this is set ...
0
votes
0answers
25 views

Copy values from one field to another

I've run into a problem where i set the maximum length of a field to short. There are 500+ nodes using this field so delete and re-write everything would be very time consuming. Is there an easy way ...
0
votes
2answers
22 views

Received “An illegal choice has been detected. Please contact the site administrator” while creating node with taxonomy field via service3 drupal7

I am having an error: {"form_errors":{"field_category][und":"An illegal choice has been detected. Please contact the site administrator."}} Field category is a taxonomy field attached to a node. ...
0
votes
0answers
7 views

Rules: after saving new content and after updating existing content both triggered on node create

I define two rules that should send an email once new node has been created. And second rule once user updated his content. The problem I am having here is that both rules trigger in one time when ...
0
votes
1answer
16 views

find nodes by attribute and modify at once

If I want to filter content by attributes (besides content type name), is there is some module around? if I am able to find these nodes, some way to update this attribute for all nodes at once?
0
votes
1answer
27 views

Importing nodes with different field names from Drupal 6 to 7

I need to import certain nodes from a Drupal 6 site to a Drupal 7 one. I have a particular situation: I need to import only nodes of a certain type Node types have different names in the sites ...
0
votes
1answer
32 views

What is the preferred way to delete large amount of data from a Drupal site?

We have a client site that currently has a very, very large data set in Drupal. We are working on generating a 'stripped' copy of the database to be used for testing new code by eliminating the bulk ...
1
vote
2answers
26 views

Prevent node delete for a specific node

I want to prevent a specific node from being deleted by anyone except admin. For this specific bundle there are two roles that have full access to the node: admin and manager. A manager can delete any ...
0
votes
1answer
28 views

Edit content before publishing

How do I give an authenticate user the permission to edit some contents before publishing it. So currently he has the permission to edit it, but he has to publish it first and then he gets the edit ...
0
votes
2answers
18 views

how to add content to a menu

I want to publish a node to a custom menu page like "people" rather than the front page "Home." I tried many ways, but I cannot deal with this matter. Could somebody tell me how to do it?
0
votes
2answers
39 views

Which hook invoke on saving Content.? [on hold]

Story: I have a content Type "Issues". I have few fields on this content type. I am using function bartik_form_alter(&$form, &$form_state, $form_id) but it fires when I view node and submit or ...
1
vote
1answer
20 views

Migrate node from a dev site to official site

I have a staging site and a production site. For an error some nodes was updated on the production site and now I have to update it but, if I will do that I will lose the production site changes. ...
0
votes
1answer
28 views

Get next node in nodequeue

I have a nodequeue named work_order. If I am in a page which belongs to this queue, is there a way I can get the next node that will be there in the nodequeue? I looked at most of their API ...
0
votes
1answer
23 views

Check if a list has a new element

I'm using the Rules module and I would like to make a rule to check wheter a new element has been added to a List in a Node. First I have tried "List Count comparison" but it can only compare a list ...
1
vote
1answer
18 views

Why do we duplicate field data in the field_revision_* tables when revisions are disabled?

Even with revisions turned off for a given content type, the field_revision_* tables for the fields each contain a single record that matches the corresponding record in the corresponding field_data_* ...
0
votes
1answer
20 views

How to remove block in colorbox?

I'm currently doing recruitment system by using drupal 7.. I want to reduce the user redirect activity, so i've installed the colorbox module and colorbox node module.. I have job vacancy list (in ...
0
votes
1answer
24 views

Drupal duplicate alias for same node

Any of you guys know why drupal it's duplicating my url alias when save a new node? $node->path = 'st.louis'; node_save($node); But in my alias table I have st.luis and stlouis
0
votes
0answers
15 views

Sort predefined list of items in node form

I got a tasks I am unsure how to solve the best way. I need a list of items in my node add/edit forms, that should be able to be sorted, enabled/disabled on each node. Eg. Task 1 Task 2 Task 3 Task ...
0
votes
1answer
27 views

Drupal best way to render content type data and meta-data

I am new to Drupal and struggling on the best approach to choose, I have several questions which are all related to my approach. Let say I have a content type "Rooms" and would like to create 2 ...
-1
votes
1answer
15 views

notify after event in followed node by follower

i have flag in drupal 7 for node by name "follow" . i want to add new event on the followed content by user , send notify for follower by php code or display counter of new event unread to user . ...
-1
votes
2answers
79 views

Open node (internal link) in new tab

Please, have in mind that I don't necessarily agree with the way I have to do things. I know it is not always recommanded and I don't want to launch a debate. Thank you. How can I configure ...
0
votes
1answer
38 views

Node add form alter & submit custom field

I have a content type "event" with a field called "field_pricelist". It's a dropdown with no values, I add the values when I alter the form. The values come from a custom table (install / schema) in ...
1
vote
1answer
43 views

Do something in hook_node_load only when displaying node

Is there a way to run a specific block of instructions in hook_node_load only when the node is loaded do be displayed and not when it's loaded in the edit form? The only way I can imagine is ...
0
votes
0answers
8 views

Sending notifications to users from other users dependent on certain conditions

Is there a way to alert users of the content in a node field? I'm trying to get users to be able to mass message other users based on certain taxonomy terms they're selecting as part of their login ...
0
votes
1answer
15 views

Get list of node dependencies

in Drupal 6, is there a way to list by programmation (function or SQL code) the dependancies of a node ? For exemple, I have videos that are nodes. Thoses videos are refered in other nodes. Before ...
1
vote
1answer
35 views

How to display the file size of attachments on a node in Drupal 7

Is there any way to display the filesize of attachments on a node trough the manage file/ display of the file field or is this achieved programmatically?
0
votes
0answers
13 views

Building/writing articles from various components

Im making blog website for friend of mine and I was wondering if there is any possibility to make nice modular UI for writing articles in a bit different way. On add node page after title, instead of ...
1
vote
1answer
48 views

Using Entity Reference field, get the parent NID in referenced entity (node)

I have a node that holds an entity reference field (multi value) to other nodes, all the referenced nodes of the same type. In the referenced nodes I have a computed field that do some calculations. ...
0
votes
1answer
18 views

infinit redirection loop with lightbox2 module

I have a redirection with drupal_goto() function like that : drupal_goto($url, array('fragment' => 'lightbox='. $lb_path, 'alias' => TRUE)); this link, after redirection, automatically open ...
0
votes
1answer
18 views

Does node_delete() deletes node_revision and comment as well?

I want to delete the node_revisions and comments alongwith node_delete() Is this possible with node_delete() or I need to write query node_delete()
1
vote
1answer
37 views

Construct the src in a javascript tag from node fields

I have a drupal 7 instance where I would like to create nodes that call reports from a separate site using javascript. Currently I construct the HTML tags myself which look something like this: ...
0
votes
2answers
35 views

How to combine different node in single views

I'm currently doing recruitment system by using drupal 7.. First.. In my system, applicant need to fill up the "Applicant Profile" (node) before they can apply for the job. Second.. i am using flag ...
0
votes
0answers
36 views

7 - Render a taxonomy term in node as a view of nodes?

I have made taxonomy terms render with views withthe tvi module This works OK, but what I want is to have a taxonomy term field that would render that view inside a node. Example: In ecommerce ...
1
vote
0answers
21 views

Help getting node resources filter criteria exposed using services views modules

I am setting up an API using Drupal 7, Services module and services views module. I have got this largely set up and working fine. I have also installed the module: Node Resources ...
0
votes
0answers
20 views

What can cause programatically created pages to occasionally disappear, but always come back when update.php is run

I have a page, very basic it's just some HTML and some Anchor tags, it works fine except occasionally and without consistency it just disappears and I instead get a 404, nothing fixes this no matter ...
0
votes
2answers
24 views

Body field data disappeared - Drupal 7

EDIT: Looks like I accidentally changed number of values for this field to 1 - it should be Unlimited. It's working now, thanks everyone. I don't know what I did but I noticed that all (except the ...
0
votes
2answers
44 views

Job Application [closed]

I have a content type called "Job", that has fields for the job and an email field for the job contact. At the bottom of each job node there should be a button "apply now". If you click on the ...
0
votes
1answer
16 views

Panels with multiple rows?

I've got a Node/Page Panel that consists of 2 columns. What I would like to do is to have 2 rows/sections in one of the columns. I haven't found that option in layout designer, only to have a section ...
0
votes
1answer
64 views

How to keep track of unique node views?

I'd like to display the number of unique node views (= how many times the full node page is visited by a unique user) in my nodes' teasers. I've tried to use the Statistics module, but in that case, ...
0
votes
0answers
14 views

Get node revisions with a particular term

I've setup a Vocab which I'm using to tag content nodes, I'm also using revisioning. I want to use the tags to define different content revisions as a particular "document version". There will be a ...
0
votes
2answers
29 views

Provide a default image for image field programmatically at theme level

I have an image field on a node, which will not always be populated. In the case where the field is empty (no image), I want to alter the markup to display a random image which always exists in a ...
0
votes
0answers
22 views

Error while updating website

I'm new to drupal. I was installing new modules in the install module tab by using the URL. However I'm currently getting an error after this. Every time I try to update the website by adding photos ...
0
votes
2answers
21 views

Version scheduling for nodes

I'm looking for a way (simple) for my editor to save a draft version of an already published node to a later date. So in other word a way to publish changes on a later date! Having the possibility ...
0
votes
1answer
18 views

Filling an Entity Reference programatically

I am creating a node programatically and one of the fields in the node is an entity reference field referencing a user. I am using the guide from https://www.drupal.org/node/1388922 and the general ...