Skip to main content

Questions tagged [nodes]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
49 views

Interface isn't left to right when creating and editing nodes in English [duplicate]

Drupal 11 with Claro theme and an Olivero sub theme in Arabic to which I have added English. While English is written from left to right, Arabic is written from right to left. My problem is that when ...
user120408's user avatar
0 votes
1 answer
97 views

Can I change the field type of the title field in a custom content?

If I create a custom content type in Drupal 10, it has a title field whose type is text. Can I change it to number? The content type is apartment, and the natural title is the apartment number. It'd ...
user85177's user avatar
0 votes
0 answers
47 views

I force dir="ltr" but Drupal or CKEditor brings back dir="rtl" - how to solve that if at all possible? [duplicate]

In Drupal 11.2.2 with Arabic as main language and English as a second language, I have a node set to English. When I edit it, I use the following JavaScript code to make everything have an ltr ...
stuckwiththisalongtime's user avatar
0 votes
1 answer
41 views

Show taxonomy fields on node form

I have a a content form that includes a reference to a taxonomy and allows for new taxonomy terms to be added from the node form. The taxonomy has two fields, both of which are marked as required. ...
Bobtail3095's user avatar
1 vote
2 answers
93 views

How to update the "Text Formats" of a field?

In the "Article" content type, there is a "body" text field. I have over 100 articles, and the "Text Formats" for this field is currently set to "plain text." I ...
Sophie's user avatar
  • 13
1 vote
0 answers
233 views

Since 11.2, default revision of the 'paragraph' entity type can not be changed to a non-default revision

Just upgraded my dev env from drupal 11.1.8 to 11.2.0, and getting this error i'm fighting with since hours : (works with 11.1.8) Drupal\Core\Entity\EntityStorageException : An existing default ...
Oulalahakabu's user avatar
  • 1,353
0 votes
0 answers
63 views

How can I pass a variable from hook_node_view() to a template file, and render it?

In hook_node_view() that overrides/edits the view of a specific content type, I put the data that I want into a variable, but I don't see how I can render that in the template file. function ...
Victor Pudeyev's user avatar
0 votes
0 answers
37 views

In a Right to Left website, how can I make English webpages Left to Right?

My website's primary language is a Right to Left language but one content type and its node are both set to English. My problem is that the node appears Right to Left. What can I do to solve this ...
simpleman's user avatar
0 votes
1 answer
41 views

Node type gets changed but node body doesn't appear until I change node type back

I run the following code with drush php-script to change a node type and the node type was changed but after checking that node, it appeared empty (only heading, but no body and tags), yet after ...
justanasker's user avatar
0 votes
2 answers
57 views

How to display nodes of content type in Layout buider?

I have a Drupal 10 site with a content type Landing page which is set to work with Layout builder. Layout builder enables the content type to pull in blocks and webform nodes. Now I would like to pull ...
Binny's user avatar
  • 954
0 votes
0 answers
65 views

Migrating nodes with reference fields

I am doing a migration from Drupal 7 to Drupal 10. I want to migrate 'Publication' nodes (which are translatable nodes). This nodes have an attribute reference field to 'Author' nodes (which are also ...
Francesc Roy's user avatar
-1 votes
1 answer
57 views

How to automatically mark articles as read for the current user

On Drupal 11 I have a content type "article", I created a view that lists the articles and displays "You have 16 articles left to read". This view does nothing but list all the ...
Steve Mchold's user avatar
0 votes
0 answers
38 views

how can I get the parent url of a block node via twig?

I have a block with an iframe and can get the url with {{ url('') }} But how can I get the url of the whole parent-page like I would do with parent.window.location.href in JavaScript?
Zola's user avatar
  • 1
0 votes
1 answer
68 views

How to limit myself from writing more than 2 characters in a node's body field?

In Drupal 10.3.10 with CKEditor 5, I have a core content type named "Article" and a node that contains a "Body" field which is a CKEditor multiline text field. This text field is a ...
agargeman's user avatar
1 vote
2 answers
172 views

How to limit to 1 node per user?

I have a website with Drupal 11 and the Rules 4 module. I created a content type "profile". The authenticated user can currently create a node of type "profile". My problem is that ...
Steve Mchold's user avatar

15 30 50 per page
1
2 3 4 5
505