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
12 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
1answer
19 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 ...
0
votes
1answer
12 views

Drupal 7 add ajax listener directly to node form

I'm trying to register an ajax listener to a checkbox on one of my standard node forms. I want to display certain regions of the form only in case, the field is checked. I can get the drupal ajax ...
0
votes
1answer
14 views

Autocomplete on multiple fields Entity Reference

This is my case: I have a content type advertisement with some fields and an entity reference of content type product. The widget type of the entity reference is autocomplete. These are my settings ...
0
votes
0answers
8 views

Drupal 7 Rules - After saving existing content not triggered when updating taxonomy

I have the event calendar module installed (https://www.drupal.org/project/event_calendar). The module allows me to create an "event calendar" content type. Once created, I'm able to "approve" or ...
-1
votes
0answers
11 views

Loading dynamic data through menu navigation

How to load dynamic content of nodes through menu navigation using node id? I have created a content type 'club' and I want to load particular club data through menu navigation.
0
votes
1answer
20 views

Generating Main content nodes based on SQL data (associated with users)

This is the first fully fledged website outside of a blog that I've ever configured, so please forgive any glaring errors I make in my logic. My website is a ranking website: people create a profile ...
0
votes
1answer
16 views

Add tabs on node edit page

How can i add a new tab in node tabs ( with edit, view tabs ) and show a page on this new tab ? i am working on a shopping cart where i need to add a new configuration tabs with nodes and ubercart ...
0
votes
0answers
10 views

Header Image module - no header image nodes listed?

I have tried Header Image - https://www.drupal.org/project/headerimage but it doesn't seem to work. I am having difficulty creating and using a header image node https://www.drupal.org/node/241454. I ...
0
votes
1answer
10 views

Best way to create outbound link with node field content

I am looking for the best way to create a button that I attach to each node's page that directs to an outside site. The url of the button will information that is in one of the node's fields. I know ...
0
votes
0answers
43 views

Pos with drupal

I have learned drupal7 in previous 4 months, this is a great cms based on PHP. And I have learned tutorial of theme, subtheme, menu, custom module, form api and view. But It seem to me I still don’t ...
0
votes
2answers
22 views

Drupal view to display node activity

I need to provide a view which gives a simple list of user activity with regards to node 'events' - e.g. any updates to fields, new nodes created, nodes deleted etc.. For example, Last Updated: ...
0
votes
3answers
37 views

How add javascrip file to a node? (module)

I have create a module who add a new node named SquareOffs. I make that in my squareoffs.info file. I would like to add to that node a javascript file, squareoffs.js, but I don't know to do that. I ...
0
votes
2answers
50 views

How to get node ID from drupal 7 when i know title (title shouldnt be duplicated) Drupal

My module is creating node with title "123title", after this i want to create next node, with entity reference field whose have to contain id of node with title "123tile" whose i created before. –
0
votes
1answer
30 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
2answers
46 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
2answers
26 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
25 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
17 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
18 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
20 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
27 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
25 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
1answer
16 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
28 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
34 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
29 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
20 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
40 views

Which hook invoke on saving Content.? [closed]

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
21 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
31 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
25 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
17 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
30 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
16 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
81 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
45 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
44 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
38 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
56 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()