Problem/Motivation
Sometime around Drupal 7, we decided we should not use the word "node" in the UI. It is on our UI text guidelines page:
https://www.drupal.org/docs/develop/user-interface-standards/interface-text
We should be using the terms "content item" and "content type", not "node" or "node type".
However, if you go to localize.drupal.org and search for strings in Drupal core containing "node", you will find about 5 pages of results.
Steps to reproduce
Proposed resolution
Fix all the strings in the UI containing "node" to use the correct terminology.
Suggested steps to identify changes for those that are not super-well-versed in grep:
- Go to https://localize.drupal.org/translate/languages/cs/translate?project=drupal (the language selection doesn't matter for what we're doing here).
- Select 9.4.5 as the Release.
- In the "Reveal more filters" area, enter "node" in the Contains field, then click to "Filter".
- Look for text strings that include the word "node" where it isn't part of a URL, token, etc...
- Document any qualifying text strings in the "User interface changes" section below.
Remaining tasks
Patch.
User interface changes
We won't be using the very confusing word "node" in core UI text.
This applies to the following strings:
- All kind of entities, e.g. nodes, comments or users.
- The book page node.
- The book the node is in.
- The parent book node.
- The @parent of book node.
- Top Level Book from current node
- The number of new comments on the node.
- Display nodes only if a user posted the @entity_type or commented on the @entity_type.
- Newer of last comment / node updated
- Comment node status
- Node user posted comment
- Human name of the parent node type.
- Machine name of the parent node type.
- Field API to add fields to entities like nodes and users.
- The Field Layout module allows you to arrange fields into regions on forms and displays of entities such as nodes and users.
- A file that is associated with this node, usually because it is in a field on the node.
- Whether the list should be visible on the node page.
- The number of comments a node has.
- There are two main limitations of the core Search module. First, it is not appropriate for very large sites -- if you have a large site, look into other search technologies like Apache Solr. Second, the Node search page type only supports exact keyword matching, which is not the behavior that most users will expect. You can improve this by installing a language-specific stemming module for your language (such as <a href="https://www.drupal.org/project/porterstemmer">Porter Stemmer</a> for American English), which makes it so that, for example, a search for the word walk would match pages containing the words walk, walking, and walked.
- The unique ID of the node's latest revision.
- The human-readable name of the node type.
- The main body text of the node.
- The summary of the node's main body text.
- The language code of the language the node is written in.
- The URL of the node.
- The URL of the node's edit page.
- The date the node was most recently updated.
- Display %display has no access control but does not contain a filter for published nodes.
- Display %display has set node/% as path. This will not produce what you want. If you want to have multiple versions of the node view, use Layout Builder.
- Node Access Permissions
- Node settings
- Node link
- Node user ID
- Node revision ID
- Node bulk form
- Node path
- Link to a node revision
- Link to delete a node revision
- Link to revert a node to a revision
- Node access
- Node status
- Node revisions of an user
- A boolean indicating whether the node is visible on the front page.
- A boolean indicating whether the node should sort to the top of content lists.
- Node operations bulk form
- Add a form element that lets you run operations on multiple nodes.
- Empty Node Frontpage behavior
- Provides a link to the node add overview page.
- All nodes where a certain user has a revision
- Filter for content by view access. <strong>Not necessary if you are using node as your base table.</strong>
- Node from URL
- The time that the node was created.
- The time that the node was last edited.
- Node types
- The node bundle is @bundles or @last
- The node bundle is @bundle
- Node selection
- Node authored by (uid)
- The translation set id for this node
- The timestamp the latest revision of this node was created.
- Machine name of the node type.
- Human name of the node type.
- The module providing the node type.
- Description of the node type.
- Help text for the node type.
- Flag indicating the node type has a body field.
- Node title
- Flag indicating the node type is enable
- base node.
- Display the content with standard node view.
- Link to node
- The number of visitors who have read the node.
- The number of visitors who have read the node today.
- The date on which a visitor last read the node.
- The total number of times the node has been viewed.
- The total number of times the node has been viewed today.
- The most recent time the node has been viewed.
- The most recent time the node has been viewed
- The ID of the node to which these statistics apply.
- The node ID.
- Node count
- The number of nodes tagged with the taxonomy term.
- The number of nodes tagged with terms belonging to the taxonomy vocabulary.
- Taxonomy terms on node
- Relate nodes to taxonomy terms, specifying which vocabulary or vocabularies to use. This relationship will cause duplicated records if there are multiple terms.
- Display all taxonomy terms associated with a node from specified vocabularies.
- Load default filter from node page, that's good for related taxonomy blocks
- Taxonomy terms are attached to nodes.
- Representative node
- Obtains a single representative node for each term, according to a chosen sort criterion.
- The node revision ID.
- Whether or not multiple terms from this vocabulary may be assigned to a node. (0 = disabled, 1 = enabled)
- Whether or not terms are required for nodes using this vocabulary. (0 = disabled, 1 = enabled)
- The names of the node types the vocabulary may be used with.
- The depth will match nodes tagged with terms in the hierarchy. For example, if you have the term "fruit" and a child term "apple", with a depth of 1 (or higher) then filtering for the term "fruit" will get nodes that are tagged with "apple" as well as "fruit". If negative, the reverse is true; searching for "apple" will also pick up nodes tagged with "fruit" if depth is -1 (or lower).
- Choose which vocabularies you wish to relate. Remember that every term found will create a new record, so this relationship is best used on just one vocabulary that has only one term per node.
- The node ID of the node.
- Whether or not the node is published.
- The date the node was last updated.
- The node ID of the node a user created or commented on. You must use an argument or filter on UID or you will get misleading results using this field.
- The user ID of a user who touched the node (either created or commented on it).
- Whether or not the node is published. You must use an argument or filter on UID or you will get misleading results using this field.
- The date the node was last updated or commented on. You must use an argument or filter on UID or you will get misleading results using this field.
- Display nodes only if a user posted the node or commented on the node.
- Nodes user posted/commented on
- UID of a nodes user posted/commented on
- Boolean indicating whether the node is published.
- The Unix timestamp when the node was most recently saved or commented on.
- The {users}.uid of the node author or commenter.
- Also look for a node and use the node author
- Obtains a single representative node for each user, according to a chosen sort criterion.
- Node Creation Time
- Node Update Time
- Current node's creation time
- Current node's update time
- If enabled, some fields may become unavailable. All fields that are selected for grouping will be collapsed to one record per distinct value. Other fields which are selected for aggregation will have the function run on them. For example, you can group nodes on title and count the number of nids in order to get a list of duplicate titles.
- Disabling SQL rewriting will omit all query tags, i. e. disable node access checks as well as override hook_query_alter() implementations in other modules.
- WARNING: Disabling SQL rewriting means that node access security is disabled. This may allow users to see data they should not be able to see if your view is misconfigured. Use this option only if you understand and accept this security risk.
- The sort criteria is applied to the data brought in by the relationship to determine how a representative item is obtained for each row. For example, to show the most recent node for each user, pick 'Content: Updated date'.
- The node Id.
- The node type
- The node language.
- Node type
API changes
No.
Data model changes
No.
Release notes snippet
No.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | Screenshot from 2022-08-26 17-32-34.png | 132 KB | estherp |
Issue fork drupal-3193696
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
finneI would argue that this should definitely be changed, but that the current use of 'node' is not a bug (things do work as designed). So lets change this issue to a task.
Comment #5
rootworkTagging this as a Novice task for anyone who is able to search the codebase (e.g. using grep, or any other method).
Task 1: Search and itemize all of the usage, in particular ones that seem unclear, i.e. if you're not sure how or whether we should change them.
Task 2: Subsequently and if there are no decisions/discussions necessary, the same person or a different person create a Merge Request changing the terms.
Comment #7
mauryarahul11Comment #8
rootworkHi @mauryarahul11, thanks for your interest in contributing. For core Drupal issues, we don't self-assign -- even if you're working on it. I know that may be counterintuitive. If you are working on this issue, please continue to do so and post a patch or open an MR once you're ready!
Comment #9
estherp commentedIn "Problem/motivation" you said you found 5 pages of results. I don't understand where you guys found 5 pages of results. Could you give more details about this issue, please?
I did the search through vscode search using the following search term: t\(("|').*node.*('|")\) and found these results like tokens and variables, but nothing useful.

Comment #10
ultimikePlease hold this issue for new contributors at DrupalCon Prague 2022.
I've also updated the issue description above with some suggestions for how new contributors can get started on this task.
-mike
Comment #11
robincsHi, I'm Robin.
I'm at DrupalCon Prague's first-time-contributor workshop and I'm working on this issue.
Comment #12
robincsComment #13
robincsComment #14
robincsI found 123 strings where the word node can be changed. I also found a few strings, where I'm unsure, if these are intentional.
Comment #18
rahul_ commentedHello Team,
It is outdated, we need to review this issue and close.
THanks
Comment #19
smustgrave commentedCan it be posted what was done to check that this is outdated? Don't think review is the correct status so moving to PMNMI