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

Drupal 6 Data Migration

I have two website with drupal 6. One was in production mode while the other one was cloned formthe production site to implement a new theme. As of now the new website is made production website and ...
0
votes
0answers
16 views

Listing entity translated nodes

I've installed the entity translation module and everything is translated correctly, the only problem is that when I change the site language, translated nodes are not listed anymore in the main page ...
0
votes
1answer
22 views

Add field to existing content entity

I am trying to add a hidden field to all nodes in my module (for any node type even new ones being created later on). Would this be the correct code? $field_storage = ...
0
votes
3answers
18 views

Restrict node to be shown only in a view and not by its url?

I created a node which has Entity reference to select one user. Then I created a view to show the node only to the user which I referenced in the node. This works fine, but the problem is that the ...
-5
votes
1answer
20 views

Can two admins edit the same node content at the same time from different computers?

Can 2 admins edit the same node content at the same time from different computers? Can 2 admins edit different node contents at the same time from different computers? Can 2 admins edit a Drupal site ...
0
votes
0answers
11 views

Set the url alias when I create a node programmatically?

I have this code to create a node programmatically, it works fine but I also need to set the "url alias" to "auto". How can I do this? $node = new stdClass(); $node->type = 'flats'; ...
0
votes
1answer
22 views

Create a node programmatically?

I found this code to create a node programmatically. It creates the node but the "title" field is not populated. $body_text = 'Lorem Ipsum is simply dummy text of the printing and typesetting ...
0
votes
1answer
12 views

Entity references from a view with list of nodes that can be references to nodes that keeps references

I have a package (node with few entity reference fields - one per content type). Example So on package node I can select nodes that are related (one reference per content type). Now I have new ...
0
votes
0answers
14 views

Override a pathauto alias display with a view

I have a magazine style site with a lot of content types and automated path aliases. For a section of my site I already have views that display the content in a manor in which I want it displayed - I ...
0
votes
0answers
17 views

Different product prices per line item options

I'm working with Drupal Commerce, and i have a node type called "travel" with a product entity. This product have some static fields types like "city" which are used to define different prices ...
0
votes
3answers
18 views

Correct SQL Statement for Joining Taxonomy Terms

I have 2 different taxonomy vocabularies setup. Courses (First Aid, H2S Alive, Air Monitoring, Gas Detection, etc...) Locations (Vancouver, Calgary, Toronto, Montreal) I have a content type ...
0
votes
2answers
27 views

Unpublish content automatically

Hi I want to know if there's a way to unpublish content(nodes) automatically based on a field date previously created. I want that task to be automatically based on the current date. Example: The ...
0
votes
0answers
7 views

Does a page created with hook_menu have a nodeid? [duplicate]

I created a page implementing the hook_menu, and I want to apply a theme for only this specific page. I know that I need to use something like page--node--nodeid.tpl.php, my question is does a page ...
0
votes
2answers
27 views

How to show a list of article titles

I am a bit confused. I understand what teaser does(shows the title and a preview and maybe some other things of an article). How do I not show a preview of the article. I just want title and ...
0
votes
2answers
12 views

How can I delete orphaned Product Displays?

Using Commerce Kickstart 2. We have a number of orphaned nodes we would like to delete, ie Product Displays which reference no Product Variation. I created a View with VBO which shows me these ...
0
votes
1answer
8 views

Sheetnode Multisite Javascript error message: 'Unknow line type '' '

I'm using sheetnode in a multisite configuration and I'm trying to refer data from an other sheetnode into the current sheetnode. My issue is very similar to this one ...
0
votes
0answers
14 views

Why administrator user makes the publish field of the node to zero?

when I access any node in my system by ADMIN user, after updating the content, it changes the published status of the content to zero. Why is it happening? Is it something general?!
0
votes
0answers
13 views

Adding custom content to sidebar in admin section's node edit page

I want to add a custom image to the sidebar of the edit node page in the admin section. Is there a hook that can allow me to do this? Edie: I should point out the the image I want to show is ...
0
votes
0answers
19 views

programmitacly get related nodes by terms

Im trying to get nodes related to a node in my module i found https://api.drupal.org/api/drupal/modules!taxonomy!taxonomy.module/function/taxonomy_select_nodes/7 its only accepting 1 TID ... i mean ...
0
votes
1answer
25 views

drupal variables custom module and views

I'm trying to figure out how Drupal works. I created a simple module. On myModule.module file I have: <?php function myModule_node_view($node, $view_mode, $langcode){ ...
0
votes
0answers
4 views

Why changing a value in organic group table og_membership joined to a node it is not changing it at all?

I'm in a Drupal Database so... Why changing a value in og_membership joined to a node it is not changing it at all. I am looking for any other cache table or something but I can't.
1
vote
4answers
58 views

Creating Tabs using Drupal?

I have been looking for a solution that allows me to add tabs to my website something similar to this page. So far I have been using HTML inside of ckeditor to write all my content. However, now I ...
0
votes
1answer
13 views

Is it possible to restrict the site search module to specific nodes?

I am trying to figure out a way to provide a search for a specific set of nodes. Currently it seems that the site search is not configurable in this way. Is there any way to change this functionality, ...
0
votes
0answers
9 views

Default contents without exposed filters?

I created a view and add some exposed filters for customer. also I added a logical checkbox to my content-type (Show without filters) Now, I just want to show some content/node (if checkbox is ...
3
votes
1answer
82 views

Replace Standard Node Path in Drupal 8

I am still new to all the Symfony semantics. What would be the easiest way to change node canonical urls to be /article/[node-title] instead of /node/[node-id]? Following this documentation I tried ...
0
votes
0answers
20 views

Node Title and Language not saved

I ran into a strange problem on several of my servers. Since a few days the title and language fields of my nodes are no longer saved. Both are in a content type called page. Other fields, let's say a ...
1
vote
0answers
13 views

Drupal 7 - How to change #value_callback for nodes created by Feeds?

How can I change the #value_callback value for nodes created by the Feeds module in Drupal 7? I've created a hook_form_alter to adjust the #value_callback in nodes I manually create in Drupal but ...
0
votes
1answer
25 views

How can I overwrite uploaded file via Filefield?

By default in Drupal 7, if I upload image.jpg via a file field in my node, save the node and then edit that same node and re-upload image.jpg, it will name it image_0.jpg. I want to replace the image ...
0
votes
1answer
21 views

display node's field in <table>

Is it possible to display a node's field in a table? Is there any module providing it? For example I have a node "English idioms" which has a field named: "Idiom" and "Explanation". I would like to ...
0
votes
2answers
29 views

Building gov.uk guides in Drupal 7

I am usually pretty good at figuring out site architecture stuff in Drupal, but this client request puzzles me! https://www.gov.uk has some really nice 'guide pages' ...
1
vote
1answer
30 views

How to bulk create an extra node for each user

I need to create an additional node for each authenticated active user on a Drupal 7 site. The nodes will be populated with default content from taxonomies, and also with some field content based on ...
0
votes
0answers
9 views

Trouble adding pager to the nodeview page in Drupal 7

I wish to careatea pager for a mynode(custom content type) list theme page. The requirement looks similar to Sortable, paged table retrieved using EntityFieldQuery. But I doubt I am running out of the ...
0
votes
0answers
10 views

Award userpoints on checkout using rules

I'm trying to award some user points to users who selects a certain plan during his checkout process. Here is the explanation of my website functionality. When a user register with a role, he will ...
0
votes
0answers
14 views

Is there any core or module functionality that automatically corrects URLs in node content bodies?

Background I'm investigating some odd behaviour on a Drupal 7 website. We're using the upload replace module to turn Drupal's file versioning on its head. However, there's a bug with this module ...
0
votes
0answers
37 views

Missing bundle property on entity of type node

This issue happens when a user is on my comment page and selects save without adding any information. I've narrowed it down to my node--editorial.tpl.php page. when i comment everything o ut on this ...
0
votes
1answer
36 views

Drupal 7, creation of new node, how redirect to the edit page of the new node

When I create a new node in my website, I want to be redirect to the edit page of the new node. I see several hook, but according to this post its not possible use drupal_goto.. Is there a way for ...
2
votes
1answer
109 views

What is :source in the Token module?

I look at the List of tokens and I see a lot of tokens with the same name and description, but some node have :source appended to it. Some of these, such as [node:title], I can understand, since title ...
0
votes
1answer
36 views

New Content type is not listing in Add Content in Drupal 7

When create custom content type through UI or programmatically in Drupal 7, there is no link is listed in the Content > Add content. I was creating the content types without any trouble, but now it ...
0
votes
2answers
32 views

add a new field in a view that uses a teaser view mode fomat

I have a view that extarct a specific content type, this view shows the teaser view mode for rendering fields and not fields format : the teaser view mode is managed with display suite module to ...
1
vote
3answers
119 views

How to organize my content as timeline

I've started learning Drupal a few months ago and I can say that the community is great and that I haven't had the need to ask a question here until now. I've started to work on a project and I have ...
0
votes
1answer
24 views

FlexSlider, Media Galleries, & Nodes (entity reference)

If this has been asked before I apologize. I'm somewhat new to Drupal but I know enough to dig myself a hole trying to find a solution to an idea. I would like to use entity reference to display a ...
0
votes
0answers
12 views

List view to start on a specific node item

I have made an unformatted list View based on taxonomy term. I'm on D7. I'm displaying all the items on one page in chronological order (no pager). I'd like to use an image map (on a different page) ...
1
vote
2answers
77 views

What will happen to my existing panels if I reinstall the panels module?

The need is to reinstall panels because of some issues with it. However what will happen to the already existing panels if you reinstall or even remove panels entirely?
0
votes
1answer
24 views

How are node IDs generated?

How are node IDs generated? Is there a field in the database, like "last node ID", that's incremented each time a new node is created? What is the data type, and are there limitations, such as a ...
0
votes
1answer
39 views

Job for create/import data from csv

I need to import a large amount of contents of a CSV file. The file is a bit complex and still have a folder with a lot of images that are associated with each line of the csv. As the file is complex ...
1
vote
0answers
46 views

Error when creating nodes of certain content type

The thing is like this: when I'm using my admin account I can create a node (content type is diplomado and is an og group). But when I try to do this using an account having a different role, an error ...
0
votes
2answers
30 views

How to create a node after one node created

How to create a node after one node created. I have a node type of 'notifications'. I need to create an entry into that after my another content type('policy') created or updated. I tried the ...
0
votes
1answer
13 views

Force the usage of path aliases

The title is explaining what I'm trying, my question is: Am I doing it right? function hook_entity_view($entity, $type) { if (arg(0)=='node') { ...
0
votes
1answer
28 views

node:id token from panel or view

I have spent 4 days looking for information on many pages without result, I would like to make a view from which to send an email with the information of a node, with view send and user view I can ...
0
votes
1answer
25 views

How can I redirect a user after adding a node that also added a new taxonomy term?

I have a content type with a Taxonomy for locations, these locations can be placed inside parent locations (f.ex United Kingdom -> England -> London), and it is set-up such that the end user can add ...