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)

1
vote
2answers
22 views

How do I add a dynamic Facebook like button to every node of a certain content type

One very comfortable solution to that problem is provided by http://drupal.org/project/fblikebutton. Unfortunately the positioning of the button isn't flexible enough for my needs. I want every ...
0
votes
0answers
27 views

Print Taxonomy ID of Node

I am trying to print taxonomy ID of a node in the node body. In D7 there is no views filed to do that, so can someone help me with the PHP code?
0
votes
0answers
21 views

How to remove link from rendered node title in view?

I have added a field to the view displaying a Taxonomy Term: Rendered Taxonomy Term http://freelance-graphic-designer.us/barmaiddev2/product-category/commercial-juicers I want to remove the link ...
0
votes
0answers
29 views

How to automate node entry [closed]

I have an brand new Ubercart site that needs a wide array of products, which would be fairly easy to make up a script to populate information about them. I was wondering what would be the best way to ...
0
votes
0answers
12 views

exporting/importing nodes without losing disqus comments / social media stats

I've been working on a website and the live version there is still content being created while i develop the local site. Whats the best way for me to import the new nodes that have been created on ...
1
vote
2answers
27 views

URL contains a number after node/nid: why?

I have just inherited a site to maintain. The site has many pages ending with /node/$nid. I notice that appending /x to the end of this URL seems to change nothing. That is, if I browse to ...
2
votes
3answers
37 views

What is the proper way to uninstall a module that adds a content type

I heard that when uninstalling a module that is a content type, you should not use node_type_delete('my_module') in hook_uninstall(). Instead, you should let it be handled by Drupal that just disables ...
0
votes
0answers
10 views

Node with field.If field added throws error 'missing bundle property'

I've got a node with a field on it called 'franchise'. If I leave that field blank there is no error but if I fill it with something, I get the very opaque error: Error message ...
1
vote
3answers
70 views

How to show a content without creating node for it on Drupal site?

I am creating a custom node page called node--mynode.tpl.php. The code I'm putting in is <p> test</p> Unfortunately nothing shows up on my Drupal site. I have also added a node.tpl.php on ...
1
vote
1answer
25 views

How do I change value of a boolean field on a node when a user clicks a button?

I am building a small site for a friend who is getting married and they have their gift list online. Each gift is a node which I am thinking will have a boolean field called something like "bought". ...
0
votes
1answer
20 views

Attribute about not allowed on element article at this point

While i checked the markup of my drupal-7 site in http://validator.w3.org/check it shows me a error: error Details: Attribute about not allowed on element article at this point. I have ...
1
vote
2answers
32 views

Add theme_hook_suggestions only for nodes in content

I am developing a blog with different categories (taxonomy terms) and I wanted to have custom node templates for the nodes displayed on the blog page and category pages. Because my blog page has a ...
0
votes
3answers
55 views

Edit Node Title in Template.php

UPDATE: I know that I could accomplish this inside of a tpl.php file. But I would prefer to keep as much logic in the template.php file as possible, reserving tpl.php adjustments for markup. I have ...
0
votes
1answer
15 views

How can I disable the node page for a specific content type? (But still use colorbox-node)

I use colorbox en colorbox-node to show the content of a node but I don't want people to access the node page for that content type. How can I disable the node's detailpage and still access all the ...
0
votes
1answer
33 views

Find out what time was last comment posted on a node

I want to put a new icon next to node listed in a block if it was created/updated or commented on in last 1 day. I'm able to fetch all the nodes which were created/updated or commented on sorted in ...
1
vote
1answer
15 views

node_mass_update will not update field

Cannot get node_mass_update(); to update Votes field. $node_ids is an array of node ids and $votes is a number. $updates = array('field_votes' => $votes); ...
1
vote
1answer
29 views

How to print a CCK image field alt text in a node template?

I'm trying to add the alt text from a cck image field in a Drupal 7 node template. Getting the image style url is done, but I can't figure out how to just get the alt text. This is what I have ...
0
votes
0answers
13 views

How to add comments to Taxonomy Terms?

I want to add comments to Terms so that If a term page is loaded, all the relevant comments are loaded. How can I add it? Right now I can fetch all the comments on a Node but cannot associate it to ...
0
votes
0answers
18 views

Drupal 7 - display some node fields only if node is sticky

Is there a module which can manage the node display fields ? I would like to display some node fields, only if the node is sticky I could do this with php but if there is some module doing this will ...
1
vote
2answers
28 views

Similar modules with Inline Entity form

I am interested in modules similar with Inline Entity form,so as to create and reference nodes during the node creation. There are some modules in a list but I cannot find them now. Does anyone know ...
1
vote
2answers
38 views

Create a node using services with PHP

I want to add a new page node using drupal services and REST server. $postdata = http_build_query(array( 'type' => 'page', 'title' => 'aaa', 'field_test[en][0][value]' ...
0
votes
1answer
13 views

How to make uploaded file permanent to node without node submit

My module automatically save new empty node when user create new node and redirect to edit this node. Now, is it possible to make uploaded file on _node_edit form without submitting form? edit: When ...
0
votes
0answers
20 views

adding rel attribute to image link in a node

I have a few images in a node that can be opened in a fancybox lightbox. I would like to link those images together to create a gallery. To do so I need to add a rel attribute to my image link. How ...
0
votes
2answers
22 views

Querying a web service via WDSL

I am thinking about creating a search engine frontend for a special use case using Drupal 7. There are some modules in the module directory, and questions like Consume SOAP web service in Drupal 7 on ...
1
vote
0answers
34 views

How to add custom text with node reference autocomple value?

i stucked in a very serious problem, i want to add my custom text with node reference target value, i already spent three days to figure out whats wrong, so finally after spending my 3 days on it to ...
1
vote
0answers
20 views

Adding an extra query string in URL

I am no way related to Drupal but my client has problem in embedding my web application in drupal. Here is the problem www.abc.com/node/14583 this site was build using Drupal and our web application ...
1
vote
1answer
27 views

Custom template for content type, How to print a link field as a hyperlinked image

I am making a site for a music festival. I have one content type for attending artists, which includes the following fields of the fields type Link: soundcloud, youtube etc. I would like to print ...
1
vote
1answer
18 views

How to add a custom widget to a node creation form Drupal 6

This may be a dumb question, but nothing I could find really told me what I was looking for. Without furthur ado: I need to add a custom widget that will edit node reference fields on CCK content ...
0
votes
2answers
32 views

Change the Order of Fields on Teaser node.tpl

Hello i am struggling here a bit to change the display of my node teasers. I was hoping to take the title and submitted part and put it on top of my body field to the right of my teaser image. Ive ...
0
votes
1answer
19 views

How Can I change the fields order without using CCK

I want to change the order of the fields in each node. I know that I can use CCK but I would like to do this in hook_node_load Is it possible? Thx :)
1
vote
1answer
42 views

Creating programatically a node that has a programtically created image field that should stay empty

I'm dealing building several modules that should cope with automatic creation of content synchronized with external sources. The whole process is automatized, e.g. everything had been created ...
1
vote
1answer
37 views

Are old nodes automatically archived over time?

I just went to a site that I haven't touch in a while and I see this on the homepage: The requested page "/" could not be found. I went into Administration » Configuration » System and saw that the ...
0
votes
2answers
64 views

How to link different contents together and display the linked content on the same page?

I am fairly new to Drupal and would need some help. on my site I have to show a few images (A - B - C - D ) created by a content type X. Each of these images will link to a different content Type Y ...
1
vote
1answer
47 views

Where and how does drupal store the node body in drupal 7?

I am programatically trying to create a custom node to store some content, which I would like to display on a page. Following is how I am executing it. $node = new StdClass(); $node->name ...
0
votes
1answer
25 views

Module: Extend “Authoring information”-tab and adding new field to it

I'm looking for a way to attach a custom field of my module to "Authoring information"-tab. Thanks for any hint
0
votes
0answers
20 views

Displaying only 2 digits in the countdown timer field

I am using the Countdown Timer Field. However, If i put in a value for the time to finish as greater than, say 100 days from the day it is created , i see only 2 values appearing. Let say the number ...
1
vote
0answers
20 views

Get a field value from an nid [duplicate]

I have the nid of a node and I want to get one of its fields' value. Right now I am doing a node_load on the nid and then using field_get_items to get the value. Is this the right way? It seems kind ...
0
votes
1answer
36 views

Pass taxonomy terms from node to block

just wanted to scope peoples thoughts on the best way to do this: I have a node which surfaces taxonomy terms. I need to pass them to a custom block (templated with block.tpl.php). The terms can be ...
1
vote
2answers
24 views

Mapping existing file against a new content type

I am facing a situation here. I have a content type A with an image field(field_upload_snaps) in it. There is another content type B which also contains an image field(field_valid_snaps). Now user ...
0
votes
2answers
30 views

Trying to make changes to page (post/article) text just before they are rendered

I have a module that works fine but I cannot seem to get node_view hook to work - seems to never be called. As a test, I tried adding this to the dennis.module in sites/all/modules/dennis, but nothing ...
1
vote
1answer
29 views

Best way to organise content

I am making a site which will deal with various micro-topics about a subject. Each subject will have the following: i) A backgrounder (one-time) ii) A news blog (obviously recurring) iii) FAQs ...
1
vote
1answer
31 views

How to move the edit tab in node.tpl.php

The $tabs variable is being printed in page.tpl.php, but I want to move it under the title of my node. I can't use the $tabs variable in my node template and I don't see the variable being prepared in ...
0
votes
0answers
10 views

Is it possible to convert a node into a panel node

I am creating a content type in an install profile. The .install file defines the content type, fields, and instances, and a function creates the content type and saves it. At the moment it creates a ...
0
votes
1answer
48 views

Let Gmap center on the users geolocation, but still load all the node markers onto the map

For a website I am building I have a used a map to display all the nodes inside my country, by using a view. When the map is loaded, it shows the whole country (by standard settings in the Gmap ...
0
votes
1answer
80 views

Show all child nodes of a taxonomy term D7

Ok, so I've been ripping my hair off for the past 2 days now. I'm developing a web-site with a car catalog which contains the following hierarchy (taxonomy hierarchy): -brand1 --model1 --model2 ...
0
votes
1answer
36 views

Heading at top of node/add or node/edit

In my node/custom_content/edit and/or node/add/custom_content page i want to place a heading at the top of the page as Create New My-Content. Seems simple enough but i am unable to do so...How can ...
2
votes
2answers
56 views

Updating user profile to update node

I currently have a user's profile set up with some extra fields and when that user obtains the role "paid user" an entity is created with a rule and a node that copies those extra fields in the ...
0
votes
1answer
27 views

How to change order of taxonomy terms related to specific node field?

As in question. I have multivalued taxonomy field. Is this possible to control terms weight, which are belongs to specific node field? As a term weight, I mean weight inside single node. It's just a ...
0
votes
1answer
40 views

Link to node in views

I have a view which has 2 displays : List : Which is a unformatted list that contains a page Table : Displays the nodes titles in a table. What i need is to make the title in each row of the ...
0
votes
2answers
51 views

How to hide language selector dropdown on node add page for a role?

I would like to hide the language selector dropdown on node add pages of multilanguage enabled content types. What would be the best way? A jquery selector perhaps?

1 2 3 4 5 25