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
2answers
13 views

Present users with form to create new node

I have created a content type called "member" in my project. Logged in Users have permissions to create nodes of type "member". I want to my users to be able to create the nodes without having to ...
0
votes
1answer
11 views

When removing a file it still is present on the machien

When deleting a node the files attached to that node are removed from the server just fine. However if I edit the node and remove the file there, it stays on the server even after deleting the node. ...
0
votes
1answer
14 views

How to find node that a file is attached to

There is a file that I want to find the node it is attached to, or at least the user that submitted it. I was able to create a view that finds the file itself but when I a field for node id, it ...
0
votes
1answer
13 views

Views and empty parameter in Path to link

I know my title isn't explicit, but i will explain my problem. I created a view that displays me all documents(content) of my website, some documents are linked to a project(content) via entity ...
-1
votes
0answers
22 views

auto calculator [on hold]

i need to make a cost calculator like in this link. https://www.exporttrader.com/sh/calcfull i have three fields, origin and destination and transportation-cost. i want to preset the cost for ...
0
votes
0answers
17 views

Is there a widget for Entity Reference that works like Nodequeue (i.e. shows published status)?

Is there a widget for Entity Reference that will show the published status of an entity like a Nodequeue?
0
votes
1answer
14 views

Duplicate alias for different nodes after submitting form twice - Pathauto?

I have found this issue, in many different installations of Drupal (I'm running 7.35, but problem occurs even in 7.34 and I think every other previous ones): if I click many times quickly on submit ...
0
votes
2answers
13 views

Custom template file for custom view mode on site front page

I'm trying to style a view a certain way on the front page (using a custom front page, page--front.tpl.php) of my site, and here are the steps I've taken using Entity View Types and Views modules: ...
0
votes
1answer
11 views

Add body class to both Node add and Node Edit Page

I want to add a Body class to my Node Add pages and my Node Edit Pages. How can I do this? I know that I need use the following in template.php to add a class to Node Edit: function ...
0
votes
1answer
12 views

combining messages and content types in views

I am using the messages module to tell people when nodes are created, deleted or edited. Is there a way to combine the messages module with my nodes in views. What I want to do is show a message of ...
-1
votes
0answers
10 views

Create multiple nodes per item with feeds / xpathparser / tamper

I want to import multiple nodes (not values on field) per import item. Ex. giorgos papoutsis, john doe After import to have 2 new content instances with 1 Node title: giorgos papoutsis 2 Node ...
0
votes
1answer
34 views

View not displayed for other roles

I have a block view that displays own articles created (this view is inside a panel page). But this view didn't displayed for other users except administrators, or when I check the permission 'Bypass ...
0
votes
2answers
9 views

node information and messages

I created a user login page, and used the login destination module to redirect my user to a new "front page" I created using views. On this "front page" I call all the nodes created by the logged in ...
0
votes
2answers
18 views

How do I programatically attach fields to a node defined in hook_node_info()

I've got a module which defines a node type. I also need to attach a few fields to this node. I'm defining the node in hook_node_info(), and I'm creating fields in hook_install(). However, isn't ...
0
votes
0answers
9 views

node Undefined index

when a create a news content (exple article) I got this error: Notice: Undefined index: und in include() (line 4 of ...
0
votes
1answer
27 views

Is Node a superclass of all content type?

I have been trying to understand drupal 7 internals. It seems to me that the concept of node is like a superclass in OO languages. All other content types are the derived classes of Node. Please let ...
0
votes
1answer
22 views

Node blog dislpay all content type blog in theme

I have content type page with node called blog(page blog) and I want to display all content type blog in it(content of page blog). how can i do this in theme without using block or views.I'm try to do ...
0
votes
0answers
8 views

How to create a 'universal' node-add form where you can select the content type it will be

Goal: A form that submits the form fields as parameters to a Rule. This is used to create a 'universal node add' form block, where users can insert - Title - Body - Groups Audience How it works: When ...
0
votes
1answer
21 views

Missing my custom ajax field values by image field in node form alter

I have created new content type and added two taxonomy reference field (select list) both referenced to same vocabulary "car" and one Image field with cardinality = 6, In car vocabulary listed brands ...
0
votes
0answers
12 views

Gmap view: how to only show certain nodes from a list?

I have a Gmap view that maps markers for all the nodes of a certain content type. Now what I am trying to do is filter the markers by node id. Specifically, I have a list of node id’s that can be ...
0
votes
1answer
14 views

How do I separate multiple values for “print render($content['field']);” with a comma?

So in my node template, I am using the following code: print render($content['field_taxonomy']); Sometimes there is only one result printed, and sometimes there are multiple results printed. How ...
0
votes
1answer
8 views

Quick question: horizontal align taxonomy @ node/add?

When adding a node (node/add/article), all the fields are showing up. With module "field group" i can alter the vertical presentation to an editor. In fact, the editor sees (for example) ...
0
votes
0answers
8 views

Users create a draft (save draft module) but subsequently can't publish node

Using Drupal 7: users on my site are creating drafts (using the Save Draft module) but subsequently when editing and clicking publish the node never publishes. After clicking publish node remain ...
0
votes
1answer
22 views

How to create a list of nodes that the anonymous user has created and limit it by the current session (SID)?

Is there a way to create a list of nodes that the anonymous user has created and limit it only by the user's current session? Basically I want the anonymous user to create a node under a specific ...
0
votes
1answer
14 views

How can I make node taxonomy becomes a.active?

I have a question about node and taxonomy I created a content type which has taxonomy term and created a node selected a taxonomy term (1) If I add a node of this node Select Taxonomy term (1) when ...
0
votes
1answer
17 views

How to map url_alias table to node table?

I was trying to use some SQL to map the url_alias field to my node field on the url_alias.pid = node.nid field. However, it turns out that these are not apparently related, sometimes they are the same ...
0
votes
1answer
16 views

How to create add and edit pages for content types beside to Administration

In my drupal installation (Drupal 7) I have various users. What I want to do is, I want to enable somehow my users to be able to create content their own, without using the administration page. Lets ...
2
votes
1answer
21 views

Field prints twice, or not at all when added to template file

I have set my node field to 'Hidden' in the Manage Display page, and am printing the field in the corresponding tpl.php file, but the field only prints if I set the field format to 'Default' in Manage ...
0
votes
1answer
18 views

How to change the node breadcrum name & there url inside in drupal 7?

There is a node where breadcrum shows like this : Home › Shop Products › Product Name Now I want to change the breadcrum. I can easily change the "Product Name" but unable to change the "Shop ...
0
votes
0answers
19 views

How to pass nid to another content type node using url

I have Feedback Form that is itself another content type node.Now my requirement is that i have to open this node/Feedback Form using link and this link is on another content type node. So how to pass ...
1
vote
1answer
24 views

single tpl.php file for two nodes?

In my Drupal7, I have same piece of code in tpl.php files for two different nodes. My tpl.php files are following: page--node--9.tpl.php page--node--11.tpl.php Since code is same for both pages, it ...
0
votes
0answers
16 views

How to load a node based on current language?

I have 2 content bundles for node entity: Custom Layout Pages (custom_layout) Recipes (recipe) Then I created two content using those content types, Potato (recipe) and Homepage (custom_layout). ...
0
votes
1answer
5 views

Targeting nodes dynamically with breadcrumbs

I'm using a 'resource' content type that can be browsed, searched, or accessed via a custom module. I'm also using the Custom breadcrumbs module. I'm wondering if anyone knows a way to target ...
1
vote
1answer
19 views

How to get values which changed during node edit in node api?

I have a node with user entity reference field. Now I want to get newly added users id's to this node via this field in hook_node_update What is the best way?
2
votes
0answers
20 views

Some of node links of content types are corrupted

There are about 5000 nodes in my website of different content types. After a while (updating the Drupal to 7.34 and configuring the Server by server administrator) some of node links are corrupted and ...
3
votes
2answers
153 views

Limit the user to 1 Node Per a day

I am making a diary website, where users can make a daily diary entry. A node acts as a diary page, so naturally I need to limit the user to make 1 node per a day. How can I do this? Steps I have ...
0
votes
0answers
11 views

Node ID showing as notice on page

I used node_save function to save nodes (fields) for node on some pages and redirects to another page but when a node is saved, its node id is showing on page as notice. It not exactly the notice ...
0
votes
2answers
35 views

Dynamic css from node?

I like to implement this codepen into drupal but the images in the background should come from a ctype within Drupal. The codepen example: http://codepen.io/AmeliaBR/pen/myPBNg So basically how to ...
0
votes
0answers
8 views

What is the rationale behind why the Node title is not a field in Drupal 7?

Node titles are not fields in Drupal 7, which means it cannot be translated using Entity Translation, without using the Title module. What is the rationale behind this design? What is so different ...
0
votes
0answers
20 views

Field collection tabs on node edit form

I have a field collection field with 5 text and image fields per field collection item. On a node with lots of field collections, this makes it very difficult to navigate the node edit form. I am ...
0
votes
1answer
28 views

Add custom text field to field settings form

In the admin when click edit on Manage Fields page it shows settings for that field. Can we add a custom property (checkbox) here like the required checkbox? For example, for a decimal field it show ...
0
votes
2answers
28 views

Batch deleting nodes breaks database

On my Drupal site, I have about 100 nodes that need deleting. I have deleted them via Views Bulk Operations. When I do this, if I make a backup of my site MySQL database and then try to restore it ...
0
votes
0answers
18 views

Using node clone to copy content and delete parent content?

I want to use node clone to copy my old content and at the same time delete the parent content for example i have a content called Item 1 I want to clone Item 1 want and then delete the original ...
0
votes
0answers
12 views

Batch fails with SQL error “String data, right truncated…” for node field

Batch fails with SQL error "String data, right truncated..." for node field_collection field. But when saving node with the same field value there is no errors and Drupal log has no errors ...
0
votes
1answer
41 views

Date Of birth in drupal

I am newer in Drupal. I am using Drupal services. I want to insert user birthdate by Drupal rest services. I want How we do this, Any help would be appericiated. Thanks in advanced
0
votes
1answer
48 views

Converting entity to JSON

I am quite new to Drupal and Drupal 8 so forgive me if my questions seems rather naive. I have created a custom module that creates a custom content type. I am attempting to extract those entities ...
0
votes
1answer
15 views

How to create a different page.tpl.php for different page, if pathauto is active?

I am new in drupal 7. I have created a page about us. My url is look like: http://domain_name/content/about-us Now I want a different page.tpl.php for this particular page. Please help how to do ...
0
votes
0answers
20 views

How to show image field's error message on the top of the form after uploading image

In my node form i am using image field with multiple value. When i upload an image, an error message is appearing on the top of that field but middle of the form, if i submit the form, error message ...
0
votes
1answer
27 views

Drupal 7 globalredirect not working for /node/ redirection

I want to redirect my site from URLs like /node/530 to /Services/TrainTickets.html I installed GlobalRedirect module as I've read it would address this problem, but the same page is still ...
0
votes
1answer
10 views

How to create a sequence of nodes to work as a “tour” through a site?

I can think of different ways, like creating a View with all nodes available and sort them with DraggableViews so I have a tree, and then adding a Next/Prev buttons if the user wants to see the site ...