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
12 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
15 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 ...
0
votes
0answers
5 views

Is there any theme with Stylus CSS Preprocessor support?

I am trying to find a theme which support stylus css preprocessor as i want to avoid having ruby dependency and stick with node.js
0
votes
1answer
21 views

Display decimal field without right side zeros

I have a decimal field for length (cm) with precision 2. If I enter number without '.' it should display as it is only. For example If I enter 23 it should display 23 only not 23.00. If I enter 23.14 ...
0
votes
0answers
15 views

Inherit some fields from referenced Nodes?

I need to link one content type to another via inheriting certain fields, similar to this guy, but automated. I have a content type called 'Session', under which you can assign 'Classes' via Node ...
0
votes
2answers
21 views

Assign anonymous node to user Id

What I want to try and achieve. An authenticated user creates a node of type 'listing' (this node obviously belongs to this user via his uid). On this node will be a link to create a new node of a ...
0
votes
1answer
17 views

how to identify first element in array of node objects?

hook_node_load($nodes, $types) in Drupal 7 takes two arrays as parameters. In the module I'm working on (Drupal 7 port from Drupal 6), just one node of one type is being loaded. I tried $node[0] to ...
0
votes
1answer
17 views

How to create a select list that contains url links

This is probably a very noob question but here it is none the less. I want to create a select list that contains the names of places around the world. When the user clicks on a name, it uses a hidden ...
0
votes
1answer
19 views

Views autorefresh

I've setup views autorefresh which works fine. But one thing I would like to achieve is instead of automatically loading the new articles if it would just create a notification say there is "1 new ...
0
votes
0answers
11 views

Get submenu items for node based on taxonomy or linked menu

My website has the following menu structure: Main page (just main page) Software (links to taxonomy) Our programs (no link) Buy our programs (links to basic page) Pricing (no link) Price list ...
1
vote
4answers
86 views

Does node_delete() function deletes the attached media files as well?

I'm deleting my 'articles' created before Sat Nov 1 00:00:00 2014 GMT from Drupal 7.34 site, but I'm not sure whether the node_delete() delete the media files as well? Below is my processing code: ...
0
votes
0answers
15 views

Referencing public files when editing nodes

Right now when I want to include an image into a node I have to specify a path like <img src="/sites/example.com/files/profile.jpg" /> The problem is if the Public file system path ...
0
votes
1answer
16 views

some node image missing after node convert batch

I have convert 50,000 nodes from one content type to another and mapping each and every fields. but after batch complete, some images migrate but some not. how i will fix this ? am i run migrate again ...
0
votes
1answer
16 views

View file when node is viewed

Lets say I have a node type that has a file field(docx,pdf etc). Is there a way to get drupal to show the file directly on node view instead of having the user to navigate to the node and then click ...
0
votes
1answer
6 views

Finding the Machine Name of an Module-based Field Added to $content variable

I need to edit a field added to my $content variable by a contrib module called Print, email, and PDF versions. It creates a link at the top of the content region that says 'Print PDF' and prints a ...
1
vote
2answers
58 views

programatically find unpublished node count in drupal

I have a task to find how many node are unpublished in a particular content type. have to use the count for some other purposes i am new to drupal can any one help me out thanks in advance
0
votes
1answer
19 views

bulk importing data in articles node catagory based

Hello how to bulk Import XML feeds -Content from xml systems category base to drupal Hello I have custom CMS we are moving to Drupal.Our custom CMS has bulk post system via XML feed. We post 1000 ...
0
votes
0answers
8 views

VBO: Access denied to other users for the first content from the list of publishing content

While publishing a content (Alert that uses scheduler to publish its content) manually using Views bulk operation I am encountering an strange behavior. When I selects a single or multiple Alerts to ...
-1
votes
1answer
29 views

Theming the output of multiple image upload widget in node create/edit form

I need to theme the node create/edit page according to the user's specifications. To do so, I need to output of theme_file_widget_multiple($variables), I suppose. It gives out table format which I ...
0
votes
0answers
12 views

Field Group Ajaxified Horizontal Tabs

There is a module that allows ajax-load of multipage fieldgroups: https://www.drupal.org/project/field_group_ajaxified_multipage I need the same functionality for horizontal tabs fieldgroups, instead ...
0
votes
0answers
25 views

Content Hierarchy in drupal

Scenario: I have several content types like history, physics etc, and each content type has articles to be attached to them, and more articles to be attached to these sub articles and this goes on.. ...
0
votes
1answer
22 views

save node after paypal payment success

In my projects, Whenever Authenticated user create new content(page) they should redirect to paypal for done payment when they click save. Once Payment Success Node should be save otherwise its should ...
-1
votes
1answer
15 views

Drupal 7 Social Share Module - Confirmation Page

I'm looking to add a the social share block only on the confirmation page. Right now it shows up everywhere. Is it possible to control where it goes? Here's the path to a completed webform. ...
-1
votes
0answers
31 views

Drupal node numbers: change system node number of a node & reopen number slots of deletes nodes

Imagine having created 10 nodes, but 5 got deleted, so only 5 remain active and/or published. When one would now create a new node, this node would automatically get assigned the node number ...
0
votes
1answer
21 views

Give non-administrator users acces to node-class

I have installed "node-class" on my drupal webiste. As an administrator, i can assign a class now to a node, but other verified users can't...?
0
votes
1answer
46 views

Updating few thousand nodes in one time

I have script which updating 2000-5000 nodes in loop and performance is poor. At the moment the code looks like: foreach($nids as $nid) { $node = node_load($nid); // updating $node fields ...
0
votes
1answer
20 views

Correct way to disable /node in Drupal 7? [duplicate]

I find going to /node as being very useful to pinpoint exactly what content non-authorized users can see. But for two reasons I don't want anyone to access "/node". I don't want that to end up in ...
0
votes
0answers
8 views

can i change the value of comment settings in Drupal 6?

I have a default value of comment settings as 'read-write' but i want to set it to disable. I change this in administer >> content >> content types. But when i wanna create a node, the bloc of comment ...
0
votes
1answer
24 views

Convert Media tags to markup

I imported the contents of a website from Drupal 7 to Drupal 8, but some nodes contain something like this: ...
1
vote
1answer
29 views

Insert several lines in field collection programmatically

I have a problem with field collection and entity reference fields. I have a field collection called 'field_co_intervenant' and i want to add several entities in this field collection and after saved ...
0
votes
1answer
19 views

How to render a block in php for a special node id

I would like to render a block from only one node on all node pages. But all the code I found to render blocks never takes the nid as an input. Is there a possibility that I can trick the block ...
1
vote
1answer
32 views

Save a format for a node body

How do I save the format used for a node body? I am using the following code, but it doesn't work. $article = Node::create(array('type' => 'article')); $article->setTitle($node->title); ...
0
votes
1answer
53 views

Add a meta content=“noindex,nofollow” tag on a node created programmatically

Is it possible to add a meta content="noindex,nofollow" tag to the head on the page of a node created programmatically (and onl this node)? I have created the node like this: function ...
0
votes
2answers
66 views

Print selected fields in page tpl Drupal 7

For some reasons, I have to customize the display of the content node programmaticaly, mixing content from other sources. Instead of making a print(render($page['content'] which outputs all the ...
0
votes
1answer
26 views

Remove `/node` from front page when using a template file (page--front.tpl.php)

As it stands I have no content going to the front page, i am simply using a template file for the front. When I sign out and sign in as any role of user on my site my front page url turns into: ...
0
votes
0answers
12 views

How can I get Node tokens to be available for my fields

I am currently using Background Field module to set a background image and I want to set the css selector to incorporate node->nid. However it seems to not be available for me to use in my field but ...
0
votes
1answer
24 views

Base field provided by a module is not accessable

this is a follow up to my question here. In my .module file I use the following code to add a base field to all my nodes: /** * Implements hook_form_BASE_FORM_ID_alter() for node_form(). */ ...
0
votes
1answer
25 views

Programmatically created node gets created three times, produces error

I'm creating one of my first Drupal modules which should create a node (type= page) when you activate the module, and then add some javascript to site. But when I activate the module, it creates ...
0
votes
1answer
15 views

How to display entire comments in separate page

I know we can display reply form in separate page. But now I having the requirement of displaying entire comments and reply form in separate page. Is there have any way to display those in separate ...
0
votes
1answer
43 views

How to display plain html

I have inherited a drupal site with a few modules. They're not exactly written according to best practices... they return html code instead of renderable arrays. In other words, they do this: ...
0
votes
0answers
15 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
22 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
52 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
20 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
24 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
18 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
23 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
14 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
22 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 ...