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

How to save multi select value in list field in node programmatically

I need to programmatically save multi value in list text field in Node. E.g. I am having multi select drop-down of language field, I am getting value in $languages = array('English', 'French', ...
0
votes
0answers
7 views

Drupal 7 field sharing between translations of a node

consider I have a content type which I want to be translated to 5 language ! and also consider that my content type has 10 field which 7 of them are some numbers and 3 of them are text ! absolutely ...
0
votes
0answers
21 views

Link's href value gets lost

I am trying to make a link on node by returning this array(The array is being formed in the function by the name buildLinks() ): $links[$key] = array( 'title' => $definition['title'], ...
1
vote
1answer
17 views

Clone nodes and change fields with Rules and VBO

I' trying to create a rule component that clones selected nodes and then changes some fields, using Rules, VBO and Node Clone. VBO and Node clone work fine, but I can't change values of every field ...
0
votes
1answer
15 views

$page not targetting views block but $is_front is. Need help with trying to solve this in any way

I wrote this poorly the first time, more succinctly: I need a custom node.tpl for the same content type in the front page teasers, the node itself, and a views listing of that node in the sidebar on ...
0
votes
1answer
19 views

How can I get a custom number of posts on the front page without views?

I need to have 16 nodes on the front page. Drupal only allows 1-10, 15, 20, etc. I'm using views now but it breaks the AJAX of the rate module.
0
votes
2answers
17 views

Can't get the module quick edit to work (have some error screenshots)

I've successfully installed the module Quick Edit that let's you edit nodes in-place (in a similar way to Panels in-place editor) and might save time. After installing the module I've yet to see any ...
1
vote
1answer
19 views

How to access global variable from within Drupal content

I am trying to access a global variable I created using javascript within a content node i created. In an attached js file i have var rootpath = "/clients/UMP/"; Inside of my drupal page i have: ...
0
votes
3answers
31 views

How can I seperate elements of content in page.tpl? [closed]

I need to separate the comments from the node. I tried <?php print render($page['content']['comments']); ?> and <?php dpm(['comments']); ?>. This is what I'm trying to do (partial ...
0
votes
0answers
9 views

Edit page for taxonomy tag terms results

I have it set up so that when you click a title of a certain part of a page, it directs to another page where anything tagged with that certain tag is included in a list form. However, there are 8 ...
1
vote
0answers
31 views

Filter views slideshow of fields by nth newest node

I've seen variations of this question posed over the years but am yet to find a solution that works for my situation. I have a view slideshow block of fields that rotates through all the field ...
0
votes
1answer
22 views

Node delete performance issue

I am using below code to delete all unregistered users node. But it takes very long time to execute node_delete function.I have around 5000 records of users in node table. How can I improve the ...
0
votes
2answers
25 views

How can I print a text field's database value with devel so that it displays on all nodes?

I want just the text field's data without an of the "field-" divs wrapped around it. It's a link so I want to do something like <a href="foo.com"><?php print ...
1
vote
1answer
20 views

How to use flags to pass variables to users

Backstory: I have a site where users can post events, rate them, attend them (everyone can see who will attent) and such. Now I want to make it so you can add variables to users, which resembled what ...
0
votes
1answer
18 views

How do I get the database value of a text field with $content?

I need to output a raw link from within a text field, without all the "field-" divs, in node.tpl. I've tried <?php print render($content['field_download_link']['LANGUAGE_NONE']['0']['value']); ...
0
votes
0answers
12 views

On user creation create node with user reference field prepoulated [closed]

I would like to know the best way to automate the below process: After a user is created they are directed to a add node form with the user reference field pre-populated. I have currently achieved ...
1
vote
2answers
36 views

Call $created variable in content type node template

How can I call the $created variable in my content type node template? I tried the following but it just produces what seems to be a random string of numbers: <?php print render($created); ...
0
votes
0answers
19 views

Node-insert check and alter value of other entities

I have a site I'm building where the admin can add sale "specials" (sales) to a store. So there's the store content type - and the sales are entity references appended to the store. Each ...
0
votes
0answers
24 views

How to display node in popup using modal_forms module

Using Modal Forms module I want to popup node content without header and footer. I am getting many links explaining using Lightbox2 but not with modal_forms.
0
votes
0answers
19 views

Customing the Edit Node Experience?

Use case: I've created a custom content type with a variety of fields and widgets. I want some privaledged users to be able to edit these nodes, but not get distracted by several fields they will not ...
0
votes
0answers
18 views

Node Title with apostrophes not appearing correctly

I have a site with titles for events with apostrophes and other special chartacters that are not displaying properly in the node title area but are appearing correcting in menus and other views. ...
1
vote
2answers
28 views

Preprocess node in module

It's more general question. Just to clarify. I can use preprocess function in my template.php file in a way: function mytheme_preprocess_node(&$vars) { // Do some stuff } But is there a way ...
0
votes
2answers
52 views

How to add a checkbox to a Content Type and act if box is set to true or yes

Module name, 'text_grabber' Content Type, 'node' name 'essay' **When I enable this module, I want a checkbox to be added to the ~/node/add/essay page. So when an user adds a new essay to the site ...
1
vote
1answer
18 views

Validate URL alias before saving Node

I have a custom content type which has a url alias pattern of [node:type]/[node:title]. How can I validate the node form in order to prevent the url alias from becoming [node:type]/[node:title]-0 in ...
2
votes
2answers
10 views

How do I create a container entity that contains variable number of fields

I am interested in creating a content type that contains a variable number of fields. Each field contains an entity reference to another entity, but as I said there may be one field or 4 fields. I'm a ...
1
vote
1answer
24 views

Sticky at top of lists node at certain time

I would like to sticky node at certain time and update time of publishing. I tried with module scheduler but it unpublish content I need published content it is more like republishing and put that ...
0
votes
1answer
18 views

Changing date format in node template

I have a content type called news which I created a template for, node--news.tpl.php. In my template, I call the date field as follows: <?php print render($content['field_news_date']); ?> It ...
0
votes
1answer
13 views

What is the Drupal 6 equivalent or alternative to hook_node_load? [duplicate]

In Drupal 7, there exists the function hook_node_load. Does anyone know how I can hook into a node being loaded from the database in Drupal 6? If not, can you suggest an alternative hook? I am simply ...
0
votes
2answers
39 views

Display different fields depending on field value in node template

I have a field named field_event_type. When creating a node, you can select one of two options for this field from a drop-down list: birthday party Wedding I want to be able to display different ...
-1
votes
1answer
36 views

Show related nodes of category selected in current node(using static select list)

i have create a content type containing a select list field(ie Fruit, Food, Jewelery etc). Note it down i am not using any node reference nor any taxonomy vocabulary. i have added a static select ...
0
votes
1answer
21 views

Bulk delete field collection items

I have a case where there are a number of field collection items that need to be bulk deleted. There are 5000 nodes with a field collection. (Note that I want to keep nodes!) Would Views Bulk ...
0
votes
1answer
27 views

How to add auto taxonomy to node fields?

How to add auto categorization(Taxonomy Term) to node based on node body/description. Node Body/Description: Retro is back in style, so flaunt the same when wearing this T-shirt from PUMA. Fashioned ...
0
votes
0answers
25 views

Show similar content on multiple sites

I have 10 different sites with different databases, each site is for a particular location/country like us.example.com. And I have a main site (example.com) which will show content from all sites. ...
0
votes
1answer
22 views

Node content versioning and compare tool

I already know that node content versioning is supported in drupal, what I want to know is how much? I for instance create a content type 'article' and add some extra text fields to it, The article ...
0
votes
1answer
19 views

Masking event title if marked as “private” (Views, Pathauto…)

I'm creating a calendar in D7 using an Event content type, which will include a Private checkbox. If it's set: Users with the appropriate permission will see the node title as it was entered. ...
0
votes
2answers
54 views

Is it possible to use an Image Style in a text field? [closed]

Image Styles is a great feature in Drupal. Is it possible to apply a preset Image Style to an image that is brought into a long text type field that uses WYSIWYG in Drupal 7? That is, for use in the ...
1
vote
1answer
16 views

Allow only lowest taxonomy terms to assign to nodes

I have a lot of taxonomy terms that need to be categorized into multiple categories and subcategories: - AAA - BBB - CCC - DDD - EEE ... Is there a way how to restrict assigning ...
2
votes
4answers
80 views

Deleting a node just after it has been added

I want to delete a node after it has been added (or modified), if certain conditions happen. Is it possible to do that with hook_node_insert? (Considering hook_node_insert will actually be executed ...
1
vote
3answers
26 views

Node/website architecture visualization

I am seeking to build a website which contains quite a lot of information. All this information will be structured in a specific way. As such I am looking for a way to represent this ...
0
votes
1answer
18 views

Annoying general behavior: the width of the text-input-fields, when editing a node, can be up to 2X your screen's width / decentered

I was just wondering whether anyone else is annoyed by the curious & sporadic behavior of Drupal of making the widths of the text-input-fields very large, when starting to edit a node. The widths ...
1
vote
1answer
33 views

Allow users to >only< upload images to existing nodes?

I want to allow users to upload images for exsits content, for example for article, but i will not allow they to delete already exist images. How modules i can use? How to create this submit form for ...
1
vote
0answers
21 views

Drupal 7: Multiple URL aliases for same node

I have the following URL aliases for the same node node/141. /products/single-room/product-listing/wall-mount /products/multi-room/product-listing/wall-mount I have two details button Single & ...
0
votes
1answer
21 views

Redirect to custom error page if node submit fails validation

I've embedded a node/add form on my homepage for submissions but for caching purposes, I need to have any server-side validation occur on a different page instead of itself. I.e. If the form fails ...
0
votes
2answers
22 views

Node content not available to anonymous users

I'm having some trouble with viewing my nodes as an anonymous user. When not logged in as admin, I am still able to access the URL of the node, but the content (other than the title) is blank. I've ...
0
votes
0answers
23 views

How to change specific comment view mode for specific node view mode?

I have one content type "xyz" in that i have created a few custom view mode for "node manage display" as well as "comment manage display". I don't know how to attach specific node view mode to ...
1
vote
2answers
26 views

WYSIWYG Editor for node titles?

Is it possible to use a WYSIWYG Editor such as a CKEditor for node titles in the node creation form? Update: Okay, so let's suppouse that I am developing a newspaper, and I want the journalists to be ...
1
vote
1answer
23 views

Best Practices? Create dynamic links with static titles on node full view page

As with anything drupal, there are a million different ways to do something. I am asking this question for 1) Because I actually have to do something similar and 2) Because I would like to know all ...
2
votes
1answer
10 views

Printing raw field value to use in path to files

I have field called "field_cat_id" which has a numerical value (10201; 10202 etc). The field represents a category id and it is also used to arrange PDF files, I would like to print this (raw) value ...
1
vote
1answer
21 views

What's the best way to create variables that are available to every single URL on my site, based on node id or taxonomy id?

On Drupal site A we have a bunch of links to non-Drupal site B. For marketing and tracking purposes all these links have a different URL variable appended to them, so that when a user registers on ...
1
vote
1answer
11 views

file as field node block

I am building a site in which authenticated users may upload files. When such a user is viewing URLs of a certain content type, I would like the left sidebar to contain, among other things, a file ...