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

Can I create a block that shows custom node types but in a specific order?

For example, I have custom block made with Views that shows some block icons that are links to modules. I would like to rearrange them. For example, I would like to say "Put node 3 first, then node ...
0
votes
1answer
9 views

Getting the field of a user based on uid or name

I'm trying to display some custom user fields of an author, of a content type's nodes. The only fields in $node that relate to the author seem to be $node->name and $node->uid. I tried this in ...
0
votes
1answer
36 views

Conditionaly display fields of another node on a node page

I am a Drupal beginner, have some CMS and PHP knowledge. I am strugling with a case which intuitively seems like a thing that had to be been solved many times. I have these content type: Product ...
2
votes
1answer
79 views

slide through nodes from the same content-type?

I've got a content-type called design_portfolio, and created an amount of fields I've created a view (using the Views module) of only the the field 'thumbnail-design'-image, which is sorted on ...
0
votes
1answer
23 views

Taxonomy terms are not linked to nodes

I have a content type with a field term reference to a vocabulary using selection list widget. When i fill the content type, i get in the output the term selected. But i click on that term i have the ...
1
vote
5answers
91 views

How to get the $form_state in hook form submit?

I need to create a node when a comment is submitted in nodes. There are two content types image and memory and I need to get node ID of the node that a user is inserting comment in it. Here is my ...
0
votes
3answers
55 views

Views and Taxonomy Terms Page Layout

I have a view that sorts by a taxonomy term. After the view layout, i need to find a specific way to have that page that's clicked on to be styled with a different background. For instance, this view ...
2
votes
1answer
31 views

What is the best way to restrict website's direct access through node urls?

How can I prevent a node from being accessible on its own page, through node/xxx. But still be accessible through node description eg: /homepage. I tried using the Rabbit Hole module, which ...
1
vote
1answer
17 views

How are node and field tables related in MySQL?

I am working on a query that involves the field_data_body Drupal table, and I have been asked to return corresponding node ids for the relevant rows in field_data_body. However, after reaching a copy ...
0
votes
1answer
26 views

How to upload multiple images as multiple nodes?

I built a social network website that is like Instagram (users can follow each other, upload images and ...) but it focuses on some event. People send us tens of thousands of images every year and we ...
0
votes
1answer
21 views

Override node.tpl.php for the Front Page

I am trying to override the front page node, however after following the guide from the official site, it's not working. Guide: https://www.drupal.org/node/1585528 I have taken node.tpl.php and ...
1
vote
2answers
34 views

How to use uploaded images from an image gallery in an article?

Maybe I am not searching for the correct terms, but I am trying to use an image gallery and be able to reference the images in that gallery from an article. I want to be able to upload the images one ...
0
votes
1answer
18 views

Get only Taxonomy from $content array

I need to get the taxonomy from the $content array to print in the node template. How can I do it? I tried with $content['taxonomy']. Where can I get a guide with all params in $content array?
0
votes
1answer
17 views

how to display dynamic field values to template?

I am making a module, each time user make content type and add fields to it, all its field values get rendered into static template dynamically. For This i am using noad_load_multiple() to get all ...
0
votes
3answers
27 views

Content hidden when author is anonymous

I have encountered a problem in my site. When the author of the node is anonymous, his/her content doesn't appear on the front page for anonymous users. but it does when the author is the admin. Has ...
0
votes
0answers
17 views

Render admin forms in a node body?

I have a node and in body field I'm giving a token as [form:node_page_form]. On saving the node, it iterates the token and render the node add form. I could render login form, registration form but ...
0
votes
2answers
15 views

Custom URL on link to node

I've got a field (URL) which contains a custom external URL for each node. My goal is to set this custom url as link on the title which is displayed in a View. This is currently linked to a detail ...
2
votes
2answers
50 views

Is there any alternative of node_save to update database fields in iteration?

In Drupal 7, we have big product catalog where we need to update price and stock frequently via Cronjobs. If we update only 5000 prices then also it takes around 20 min. In each iteration we use ...
2
votes
1answer
41 views

page--front.tpl.php being ignore in favour of page--node--page.tpl.php

I've got an issue which I'm not sure how to address. I've got a specific page that I've set as front page. I've created a custom template for it and named it page--front.tpl.php and it was as expected ...
0
votes
1answer
18 views

How to get previous page title

How can I get the previous viewed page title? For example, I visited node/21 then, I navigate to node/22, then in node/22 I'd like to get the node/21's title. In node/22, there's a text field where ...
0
votes
0answers
9 views

Show list of referencing nodes - entity reference

I try to find a way to display a list with all referencing (parent) nodes of a entity reference. I didn't find a module (only a counter of how many references). Is there a module or do I need ...
1
vote
1answer
36 views

Which modules would you recommend for creating a website to sell tutorials online? [closed]

We have about 100 animated tutorials that we want to sell online. Student can register, and then buy these tutorials There will be a small demo which he/she can view and then click buy to access the ...
0
votes
2answers
15 views

Drupal Node view modes

I have setup multiple new view modes for a specific node. Full,Teaser,New Teaser,Custom Display. Is there a way to view the same node with different URLS for the different view modes. Please let me ...
-1
votes
1answer
17 views

Date selection with price - without commerce

I need a option to let users set up dates and price when creating node with unlimited number of entries. For example: "from: 15/01/2015 to 20/02/2015 - Price = 50 USD" from: 21/02/2015 to ...
0
votes
1answer
29 views

Render a webform to another node

I have a new text format sample_page with the filter sample_page, I've created using hook_filter_info(). In the callback, I am rendering a webform using depending on the token in the node body, for ...
0
votes
1answer
23 views

Get current node's count (rank/order?) from node.tpl in a View which renders a list of nodes

I have a view that lists multiple article nodes. Now for each rendered node, I want to be able to know its rank/order from the list of displayed nodes. Here's a visual representation: [view] ...
1
vote
3answers
38 views

Changing node/%/edit title

I have created custom content type for upload the details. I have used hook_form_alter to set the node title as "Upload". When I edit the node in node/%/edit the title remains "Upload". I want the ...
3
votes
2answers
120 views

How to programatically convert nodes from draft to saved

Is there a way I can convert all my imported nodes into "saved " status instead of "Draft" programmatically? Can this be done in a hook and what would the code for doing this be? If it can be done ...
0
votes
1answer
36 views

how to modify field of a node?

I have a custom text field which I use to display some voucher code to users. I have it in a custom content type named (machine name) : 'add_deal'. What I want to do is to style the field when the ...
0
votes
2answers
13 views

Rename nodes based on field

Basically, I want the name of a node to be replaced with the value of a certain field. So if I have a field type called field_new_name, I want the title field to be changed to that field's value. I ...
0
votes
1answer
41 views

Slow AjaxResponse for node content

I am using Drupal 8 so there is very little documentation or benchmarks, but I believe a route I have set up for ajax responses is not as performant as it could be. This is the route: next_node.ajax: ...
0
votes
2answers
43 views

display node owner

A node has a uid field. In a node view I would like to add a field to show the author name with his pictures. I now added a field and using entity referencing to a view with all users where I can ...
0
votes
0answers
11 views

How to break existing node(having data in database) form into multiple steps?

I know this type of question is asked earlier also. But with me, situation is somewhat different. I have a node form with many elements. Earlier it was in a single page to create/edit the same. And ...
0
votes
1answer
23 views

Node access control

Can you please help me resolving this problem please : I have a content type : "project" and a content type "proposal",proposal content type node has a field reference to the "project" content type, ...
0
votes
0answers
17 views

Efficient/Correct way of accessing a field of a referenced node

I have an Article node with a field_recipe field which references multiple Recipe nodes which has a field field_image. In the Article node template I have this in my code: $recipes_raw = ...
0
votes
1answer
26 views

Which hook will load after node page load and file download

I need to run db_insert and db_update once after a node is loaded. Its only for particular node content type. Which hook can i use for it?. Can i add that hook in template.php instead of adding it in ...
0
votes
1answer
42 views

how to add a content creation in a view [on hold]

I've created a view where it displays all created articles by the current login user. named as "my Articles". Now, I need to add a node/add/articles (which let me add a new article) together with the ...
-1
votes
2answers
36 views

how to get list of field names by select its node type in drupal?

I got the all node type list in a variable using get_node_type_info() and now am passing this variable to field_info_instances as: array_keys(field_info_instances("node", $op_keys)); ps: $op_keys ...
0
votes
1answer
30 views

how to display array in div structure in drupal 7?

How can I render arrays in div structure in drupal?. I am having a select list with ajax callback.Everytime I choose option, it's fields get fetched into an array. Now how can I show that array fields ...
0
votes
1answer
34 views

Is it possible to theme node add form in drupal 7

I am using zen drupal-7 sub theme. I have created a content type named edison. I need to change the node add form for the user. I've tried adding page--node--add--edison.tpl.php in template.php. I ...
0
votes
0answers
10 views

How to delete a node in menu system when user updated a specific content type article

I have built a content type and some taxonomy There is a problem in my site for now if I selected taxonomy one my node will become to the taxonomy one children in the menu system and if I edited the ...
0
votes
1answer
26 views

Editing Multiple Nodes

I'm not sure if this exists. I'm looking for a multi-node edit workflow. I want to select multiple nodes then for each node selected show an edit form. This would be something like showing the first ...
0
votes
2answers
22 views

How to save a new term with multiple fields while adding content?

Not only do I want to add terms as I create content through the UI, but I want to add terms that have multiple fields (i.e. more fields on the taxonomy besides the 'Name' that populates the list). How ...
0
votes
0answers
11 views

Drupal 7 node search give “Error: ”“ - Code: 0” while search result contain special characters

While I'm going to search with some keyword. but if serch result contain special characters then Drupal gives Error: "" - Code: 0 Is there any solution for this error, and what that mean Error: "" - ...
3
votes
1answer
99 views

Why to use Panelizer module?

Is there anything that can not be done by the Panels module without the Panelizer module? I'm just starting to learn Panels module and I faced Panelizer. Note: I installed and applied this module ...
0
votes
0answers
28 views

Fetching the revelvant node based upon the tags attched to current node

I have a requirement to fetch the 5 relevant nodes based upon the taxonomy tags attached to the current node. Relevant nodes has to be fetched based upon the following logic. 1) If current node ...
0
votes
1answer
19 views

Apply hook_menu to all nodes except node593

I have 2 separate hook_menu callbacks going on in my code. I want to apply a function to all nodes and then for node593, I want to apply it's own function but I can't seem to do this. The function ...
1
vote
0answers
60 views

error “EntityMalformedException” when creating a node as guest

We have a node type with permission to create new nodes for guests. When we try to create a new node of this type as guest we get the following error: EntityMalformedException: Missing bundle ...
0
votes
1answer
35 views

Deleting large amount of nodes effeciently during cron

I implemented hook_cron() to delete nodes older than 30 days using node_delete function. Tracing the performance displays this: 2015-07-06 21:28:49 Drupal watchdog ...
0
votes
1answer
22 views

Drupal node_load display all fields

I have a template for a view in which I load a node. Is there a way to get the value of all fields from that node? Like, if I add another field in CCK it will appear automatically in the template. ...