Questions tagged [drupal-nodes]

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.

In Drupal, almost every bit of content is a node. Nodes can be pages, videos, blog posts or polls. While comments are not nodes, they are tied to, and reference a node.

Treating all content as nodes allows the flexibility of creating new types of content. It also allows you to painlessly apply new features or changes to all content.

While nodes are implemented as entities in Drupal 7, should be used instead, unless specifically referring to Entity API functionality.

90 questions
1
vote
3 answers

Searching custom nodes' by field in Drupal?

Using Drupal on a project which I made custom node types in using the CCK. I want to be able to search the specific node based on a custom field the node has. So let's say I have this node type Article which has a field "myfield", I want to be able…
Joseph
  • 11,022
  • 15
  • 65
  • 109
1
vote
1 answer

Add/Edit Custom Content Type using a Custom Form

I have developed a module with a custom content type and with the use of a custom form, I'm grabbing the required details form the user. When the form gets submitted, I'm creating a new node of my content type programmatically. The problem I am…
PIKP
  • 691
  • 2
  • 13
  • 19
1
vote
2 answers

Drupal 7 custom content type theme hiding Header/footer from node.tpl

I have a custom content type "mycustomcontenttype" and i have a view listing for this Content Type. I have also a link in title for each node when clicked will open a popup shadowbox with node details. My problem is when the details comes in popup i…
1
vote
3 answers

Drupal 7 - Use external database in (virtual?) nodes and views

I'm a bit of a Drupal newbie but have committed myself to porting some quite complex bespoke websites. One of these is a surf report site which uses a database with millions of time/location rows to get the local conditions. Obviously can't write…
1
vote
0 answers

Concentric rings in pie chart as nodes of a network using R

I am trying to draw multilayer concentric rings as nodes of a graph. Here you can find a simple version of what I did, and here what what I want to do. Note that the edge should also be dragged with the node. This is the code for the…
user31168
  • 145
  • 1
  • 5
1
vote
1 answer

Drupal 6 - Email Newsletter Module - Attaching nodes/stories content, mail collect send to access denied page

I have hard time using this module in my Drupal 6 site. Since I downloaded and installed required modules such as: Email Newsletter, Bounced Email, Deliver, HTML to Text, Identity Hash, Publication, Schedule, Subscribe Members, Subscribed,…
1
vote
1 answer

Drupal - Node Delete Button and Node Expiration Date

In Drupal 7 when a user is logged in and viewing their own node, or an admin is viewing any node I'm looking to have 2 buttons that appear: Delete NODE Renew NODE When delete is pressed, the status is set and then saved. When Renew is pressed,…
user1715262
  • 49
  • 2
  • 5
1
vote
1 answer

Feeds Import won't import all CSV items

I've set up a feeds importer on my site. It reads a csv file and imports the items to the site. Then, it creates a node for each line. It works well, except it never imports all the items from the file. This is the case if I have 10, 50, or 300…
1
vote
1 answer

Drupal 7 Is the a way to programmatically know the Fields in a Content Type?

In Drupal 7, i need to Programmatically create the nodes, by using: $node = new stdClass(); $node->type = "movie"; After, just this codes above, and lets assume i don't know what are the fields for it. How can i get to know the fields and that…
夏期劇場
  • 15,969
  • 40
  • 121
  • 208
0
votes
1 answer

Node Update on hook Cron

I am trying to update Node on hook_cron function. I am using Drupal6 Here is my Code function offers_cron() { $query= db_query("SELECT * FROM {node} WHERE type = 'product'"); while($allnodes = db_fetch_object($query)){ $node_id=$allnodes->nid; …
harpreet kaur
  • 143
  • 1
  • 3
  • 10
0
votes
3 answers

How can I customize a specific node in Drupal 6 WHEN a custom template has already been applied to the node's content type?

[For Drupal 6] Let's say I've created a content type called "my_content_type". I can override the default template for that entire content-type by creating "page-node-my_content_type.tpl.php". But, what would be the best way to then further…
technoTarek
  • 3,168
  • 2
  • 19
  • 25
0
votes
2 answers

drupal programmatically disable or remove node create node link(s)

In the context of organic groups, I am writing a module which will stop users who are not members of a group from adding group posts into that group. My module currently sets the permissions necessary and detects whether a user has the permission.…
sisko
  • 8,609
  • 18
  • 58
  • 121
0
votes
2 answers

How to create dynamic pages in drupal?

I have contents in the following url: mysite.com/project/node-id But then i want the user to be directed to mysite.com/entries/node-id when they click on entries link. How do i achieve this? In the entries page i want to show a view which takes the…
Rahul_2289
  • 291
  • 2
  • 6
  • 18
0
votes
1 answer

Drupal custom content type list view

I have created custom content types and nodes for each. What's the best way to create a page that shows a list of recent nodes of just a specific content type? I was planning on using the Views module. Should I create a custom node--type.tpl.php…
Tim
  • 14,221
  • 6
  • 37
  • 62
0
votes
1 answer

Drupal filter is not working properly

I'm not sure how to ask it, so if you need anymore additional information, please ask for it! Situation I've got a website in three languages. I got a lot of customer cases online each connected to a sector (depending in which sector they belong).…
Michiel
  • 7,213
  • 16
  • 57
  • 110