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

Filter nodes per field value

I've maked a content type that has some fields. These field are shown/hidden by the selected user with the Conditional Fields module. For example, I choose the faculty from one field, and after that, ...
0
votes
0answers
17 views

How remove header and footer of page when user print module export node to pdf file [on hold]

I use the print module to export documents to PDF. When exporting to PDF documents I encountered a problem that the module automatically generates the header and footer for this pdf file. I do not ...
0
votes
1answer
21 views

Import date to Drupal

I am receiving data from a third party company through XML. I want to add this to my website as drupal nodes, having some information like title, body, summary, image,... I am able to make a cron job ...
1
vote
1answer
14 views

Creating nodes from json including image field upload

I am trying to create a node programmatically from the data(JSON) sent by my front-end template. <input id="title" name="title" type="text" > <input id="body" name="body" type="text"> ...
0
votes
0answers
9 views

Workbench Email - Slowing down Add Edit

I've configured workbench as per tutorial, everything works fine until i've handful of users but when I imported about 7000 users (authors) and when I open Add or Edit content type form for editorial ...
0
votes
0answers
10 views

Migrating Drupal 7 Content Types & its Nodes into another Drupal 7 site

I have 2 Drupal 7 sites and I want to migrate data from one into the other. One of the D7 sites has a bunch of content types that the other doesnt along with a bunch of nodes associated with it (about ...
1
vote
1answer
12 views

Assigning content from one user to another user automatically after a payment

I am evaluating Drupal for a new project but I am not very experienced with Drupal so far. The project is based around a custom content type created by role-A user and then re-assigned to role-B ...
0
votes
0answers
9 views

Pick up field collection within another field collection

I'm trying to pick up a field collection value within another field collection. The parent field collection, I can pick up the values just fine, but it's the collection within the collection I'm ...
0
votes
1answer
18 views

Force node render with a template (giving template url not suggestion)

I need to change $render_array = entity_view($entity_type, $entities, $view_mode, NULL, TRUE); render($render_array); in order to force drupal to use a specific template.tpl.php (giving a specific ...
0
votes
0answers
7 views

Why can't I import nodes, which were exported via UUID Features?

As in question. I've enabled and configured UUID Features module. I've exported target content type too in the same feature. I'm seeing this nodes in my_feature.features.uuid_node.inc I've deleted ...
0
votes
1answer
18 views

How to automatically assign child taxonomy terms?

I'm building a virtual network like Instagram but its contents (images) are about a certain event. The strategy of selecting taxonomy terms is to display all of the tags (about 20 ones) and a ...
0
votes
0answers
9 views

Automatically import the information fields when creating new content

When working with drupal I have a problem but do not know how handle. I created a content type and then assign rights for anonymous users are allowed to create that content. In the type of content I ...
0
votes
2answers
23 views

How do I render field outside node

For custom content type page I used this: function MYTHEME_preprocess_page(&$vars, $hook) { if (isset($vars['node'])) { // If the node type is "blog_madness" the template suggestion ...
0
votes
1answer
13 views

taxonomy image as background image on node

I have taxonomy images attached to node that I would to make me background image. Previously I used the images uploaded to the node as a background image. This is the code I used to print out the ...
0
votes
1answer
11 views

Node preview in a POPUP

I Want to open node preview in popup, Is it possible to display Node Preview in a pop up like colourbox or light box? If anyone has solution Please let me know Thanks..!!
1
vote
1answer
35 views

Views, show block on nodes where the node author has specific role(s)

I am trying to display a few views blocks on nodes of authors that have specific roles. So far I used contextual filter Content: Author uid with the following settings: Provide default value: User id ...
0
votes
1answer
16 views

Printing printer friendly version of nodes in bulk

My scenario is this, a user selects a bunch of nodes and selects to print all the nodes. What I'd like to happen is, once the user clicks the print button, the print dialog opens up and all the nodes ...
1
vote
2answers
21 views

How to update content type field programmatically

I try to update content type field MYFIELD with code $update = db_update('field_data_field_MYFIELD') -> fields(array('field_MYFIELD_value' => $result)) -> condition('entity_id', ...
0
votes
2answers
17 views

Placing block inside a node (positioning block between specific elements in node's content)

Basically I created a webform and enabled it as a block, now I want to put that block inside a specific node. I can do that by placing it in a 'content' region and defining the specific node BUT it ...
0
votes
0answers
13 views

Can I call specific fields and field groups in a node.tpl using Ajax

I'm building a fairly large content type and some of what's in there doesn't need to be loaded until the user asks for it. Is it possible to not load certain fields and field groups in the content ...
0
votes
0answers
10 views

Get taxonomy term links in node.tpl.php

For some reason I cannot get this to work. Here is what I have in my custom node template which is named node--news-feed.tpl.php.. <?php print render($content['field_company']); ?> This ...
1
vote
3answers
95 views

How to programmatically set node alias on node save

I need to set a special path alias for nodes created by users in the template.php file of my theme. the pathauto module is enabled. I already tried the solutions that are given in the following links ...
0
votes
1answer
17 views

Getting a list of altered fields when saving a node

I need to trigger some logic to recalculate certain computed fields based on what fields may have been altered when a user updates a node. So I'm looking to create a function that returns a list of of ...
3
votes
1answer
81 views

How to get the nid for a newly created node?

If I've created a node in an install hook, how can I immediately get a reference to the nid property? It doesn't appear to be set on the entity during save. use Drupal\node\Entity\Node; function ...
0
votes
1answer
12 views

Node export module imported node as another node numbers

I used Node Export module to export my nodes. I exported 3 articles that are node/1, node/2 and node3. While I imported it into another site, the node became node/4, node/5 and node6. How do I make ...
1
vote
1answer
19 views

I want to save and view the node content in the same page without page refresh using content types

I have to create content type as CELL. CELL content type have some fields. I want to show the fields in the node create page. How to save the data without page refresh. How to view the saved ...
0
votes
0answers
13 views

themed node add form cannot render form properly

I would like to theme a node add form with the id of "project-node-form". I followed the steps I found online too add the hook theme code in the template.php under the theme and there seem to be ...
0
votes
1answer
12 views

How to build a specific administrable page layout?

I have a HTML layout provided from a template and I need to make an administrative page to fill the template with a content. The page layout looks like this: I want to have an admin page where can ...
0
votes
1answer
35 views

How to implement Slider Effect for pages?

I have few pages in my site and I want 4 specific pages to rendered as slider with the full content of the node appeared as a slide. On desktop I want the slides to change using html arrows and on ...
1
vote
2answers
56 views

Wrap a field in html from template

I have an Article content type that has related_news field. It displays inside the article text as a box. In node--article.tpl.php I have the following code: <?php // We hide the comments and ...
0
votes
0answers
28 views

I am using quicktabs module. How do I insert two nodes within the same tab?

I need two nodes say node/115 and node/116 within the same tab.
1
vote
0answers
27 views

Get Workflow current state ID of a node

I'm trying to get current workflow state of a node to use in a function which will disable some tabs according to conditions. $current_state = workflow_node_current_state($node) didn't work. So, I ...
0
votes
1answer
28 views

Set a value from one text field from one content type to another text field in another content type using set data value in rules

I have two content types A and B and I have two rules. I am trying to add the text put in the A text field of content type A into the B text field of content type B. On rule two I am using the set ...
1
vote
1answer
11 views

Custom tpl.php for custom content types rendered through another tpl.php

I have a custom module which displays multiple content types in tabs. My module uses a custom tpl.php which renders the tabs and the contents(of multiple types). The challenge is to have custom ...
0
votes
1answer
25 views

Custom Editor for a node based on type

Using Drupal 7, I'm working on a module and want to have it so when the module is installed it will set a new node type called "project" When a user is adding/editing a $note->type="project" I want to ...
0
votes
0answers
37 views

Module developed in feature not working when changing environment

I've developed a module that works in local but doesn't in my webserver (CENTOS6). The role of the function is to add a parameter in the URL ( like http://website/view_page?r=123) But it doesn't seem ...
0
votes
1answer
61 views

How to display multiple fields from a taxonomy term on a node (and control the html)

I have a content type (product) with a term reference field (colour). When I create a new product and select a colour I would like the display of that node to render the taxonomy items term name and ...
0
votes
1answer
17 views

Styling different fields before/while rendering it using drupal_render

I developed a custom module, in which I display tabs of different nodes. I render each nodes using the below piece of code, $node = node_load($myNodeId); $view = node_view($node, 'full'); $rendered = ...
1
vote
2answers
46 views

How to call view block on click?

I have a page/node that contains 15 view blocks, each view block has many fields and all of this causes the page to load really slow. How do I load the view block only when I need it? for example I ...
2
votes
2answers
23 views

Overriding nodes of a certain type with a view

I'm using a single view to display some nodes on my site, and I can't figure out how to get it to only override the three content types I want (retreat, location, and teacher) but not all of them. In ...
2
votes
0answers
24 views

How to pass cookie value into Drupal View

We want to create some logic using JS that creates a cookie and set the node's taxonomy term id (preferred) or taxonomy term name as the cookie value. Then we want to use the cookie value to filter a ...
1
vote
1answer
13 views

Achieve single node field edit to have different values for each user?

I am trying to create lets say and activity node which allow each user to insert a different value without having to create a node. for example: I created activity1 node, and then I will allow user a ...
0
votes
1answer
27 views

How to get a node content programmatically?

I am writing a module, in which I am required to display contents from multiple nodes. Using the configs I save, I will get the node id's in hook_block_view. Using that is there a way to get the ...
0
votes
1answer
14 views

How to use redirects on Nodes that are only used to populate block Views

I have a custom content type that is really only used to populate a views banner, so I don't want that node to ever be browsed to or indexed. I'm thinking this is a redirect kind of scenario, but I ...
1
vote
1answer
16 views

Altering the Title of node using Preprocess

I am trying to alter the page title of history content type using this function function mytheme_preprocess_page(&$variables) { if(isset($variables['node']) && ...
0
votes
1answer
32 views

Entity Reference Roles

I've created a Entity Reference from customer to contract and I created a user which can create a customer. Now is the problem that I can't select any contract with the new user when I try to create ...
1
vote
4answers
66 views

How to hide node field if value is x?

Works great by default when the field is empty. I'm looking for a module that will allow me to hide a field when viewing a node if the value of a field is for example 3. For now, just need it for ...
1
vote
1answer
31 views

Array of items as contextual filter in Views

I need to create a View which displays content of users that their username should be passed as contextual filter. The number of parameters (usernames) are not specified but the View must include ...
-3
votes
0answers
25 views

How can i get the node details from database in .test file?

how can i get node details from database. I am creating custom node for custom module testing. node created successfully,but i want that node details,how can i get node details by using database ...
1
vote
0answers
49 views

How to sort content of nodes by dynamic fields?

I have a content type named "Article". "Article" has fields: Body, Image, Tags, etc. I want to create a sort handler that will sort node content by content type fields. I know, every field has its own ...