Questions tagged [nodes]

The most basic form of content on a Drupal site is a node.

Filter by
Sorted by
Tagged with
0
votes
2answers
1k views

How to set node default language (or avoid language neutral) without Content translation module

I both have nodes that need to be translated (using Entity Translation), and nodes that need to have a single language (which we are discussing here). Because of some incompatibility between Entity ...
0
votes
2answers
522 views

How do I add tags to Advanced Forum posts

I would like to add the type of tags this stackexchange forum has, so users can tag their posts and the tags appear at bottom of all posts. How do I do that?
0
votes
1answer
106 views

Importing nodes with different field names from Drupal 6 to 7

I need to import certain nodes from a Drupal 6 site to a Drupal 7 one. I have a particular situation: I need to import only nodes of a certain type Node types have different names in the sites ("...
0
votes
1answer
989 views

Drupal duplicate alias for same node

Any of you guys know why drupal it's duplicating my url alias when save a new node? $node->path = 'st.louis'; node_save($node); But in my alias table I have st.luis and stlouis
0
votes
3answers
268 views

Referencing other nodes created by the same author

I have a site where members can sign up and post an article (standard content type) which I'll call STYLE A. I now need to allow the members to create a different article (another content type) which ...
0
votes
2answers
806 views

How to add dynamic fields with condition?

I have a website that is about automobiles, I want when a user choose a brand drupal shows some of its models: This image show an example: for example I want when a user selected BMW drupal shows ...
0
votes
1answer
43 views

About shaping the Drupal “add content” pages

My question is that do you change the Drupal "add content" pages appearance and fields for your final version of project? Actually, I really do not know how it is conventionally provided for Drupal ...
0
votes
2answers
393 views

Limit amount of content creation per anonymous user

In my site anonymous users has access to create one type of content and all data the site stores is user IP address. How do I limit lets say e.g. 2 nodes creations per IP in 12 hours? And when limit ...
0
votes
1answer
859 views

Autocomplete entity reference - Required to select entity

I'm having problems with a required field that is an entity reference. This is my case: I have a content type advertisement that has an entity reference product, what is an autocomplete widget. The ...
0
votes
3answers
522 views

How do I get 2 separate displays of a view in one page that are displaying contents from two different content types?

For example, I have a Page view which displays Content Type A Title, Post date and categories. This page will lists out all of the matching contents that this user has published. Then I created a ...
0
votes
1answer
99 views

redirect in hook_init makes body text disappear

What is wrong with this code. It makes my body text disappear in all of my nodes. function MYMODULE_init() { if (arg(0) == 'node' && is_numeric(arg(1)) && !arg(2)) { $node = ...
0
votes
1answer
1k views

How to create a child page that has the same content type as parent page?

I enabled the Book module on drupal 7 and created 2 new content types. Let said I created a new "content type A" and "content type B", and keep the book module content type as "Book page". The issue I ...
0
votes
1answer
279 views

Deleting field collection items

There is a content type called library which has a field collection type as a field and unlimited number of this field is allowed. I used Devel module to generate 200 nodes of library, so more than ...
0
votes
3answers
462 views

Get content page field value

I have a content page contain three field. Number A: Number B and Total Number. During add content page, I fill up Number A: 20 and Number B: 30. How to let Total Number auto display 20 + 30 = 50?
0
votes
2answers
45 views

more fields on a content type or more content types

I know this is a situational/subjective question..... but I am trying to figure out a site architecture for a drupal site. I have multiple products with different attributes/properties. I could ...
0
votes
1answer
24 views

References module doesn't specify/read a pager limit when field is using a view to generate potential references

Discovered an oddity that seems inherent in the node_reference.module 7.x-2.1. It is a rather specific use-case, so I can see why it might not have come up frequently before. Just wondering if anyone ...
0
votes
1answer
85 views

How to implement a nomination process for nodes?

I want to implement a nomination process. Users should be able to Nominate existing Nodes of type 'course'. Nominate new content that should later be of type 'course'. All nominations should be ...
0
votes
1answer
191 views

How to sort the blog

I am trying to sort blog by title. The blog does not appear at view. Taxonomy does not has any setting related to sort. What else I should check?
0
votes
2answers
430 views

Error message - Trying to get property of non-object

i'm getting a notice Error message - Trying to get property of non-object here's my function: <?php function func() { $node = menu_get_object(); global $user; if ($node-...
0
votes
1answer
574 views

Change content “Author” to the last “Editor”

On the admin/content page. The field "AUTHOR" shows who created the content, but this is not very helpful for seeing who last edited it. How would you change this to show who last edited it?
-1
votes
2answers
937 views

How to unset content or hide content from node by ID or by path alias? [closed]

Create content for a custom content type "Artist" (Add Content > Artist) Note the node number (/node/[number]). Set an URL alias for the node. node/[number] to /details/[node:field_artist_title] I ...
-1
votes
1answer
31 views

How to add fields while creating a node? [closed]

I am looking for a module which allows a user to create a new field while adding a new node. Is this possible, or should I resort to comma separated values in a big text area?
-1
votes
1answer
64 views

sending mail after checking a selected list in field

In my content i have an select list text field.I have an four options far that,while clicking only particular one in select list and giving click save.Then i want to generate mail to administrator. ...
-1
votes
2answers
40 views

How to create one more registation page in drupal site

In our drupal site we have a Registration page. and the new requirement is creating the one more registration page with same functionality(newly created registration page also use same database to ...
-2
votes
2answers
79 views

Why doesnt my migration plugin run?

I made a plugin to add the alias to my node migration, using the instructions here https://www.calebthorne.com/blog/drupal/2016/07/16/drupal-8-migrate-pathauto but i tried to put a drush break point ...
-2
votes
1answer
38 views

Creating a displayable 'index' of content nodes within a path

Ok, it's been over a decade since I've worked with Drupal (primary use was for a personal blogging platform, with a bit of extra extensibility and a well developed plugin ecosystem). Sadly, most of my ...
-2
votes
1answer
60 views

Do I need different content types for correlated items [closed]

I have different types of correlated content items like news, articles, ebooks and books. Some items have same fields, for example news and articles, but some have different fields. Do I make ...

1
10 11 12 13
14