I have a custom content type. I would like to limit that each user can only create one node of this content type. How can I achieve this?
123579
How can I restrict various roles with limit in creating nodes of a particular content type?
29997
I created a view to show Users. These users can create nodes of the "Questions" content type.  The view has to render a table to show how many (the total number) Questions the user has created. Something like:  User +++ Questions created John --- 10 Ted  --- 4 Alf  --- 19
97438
My "Article" nodes have a "domain" field that links to a taxonomy term. My "Article" nodes also have a repeatable "entity reference" field "more like this" that links to other "article" nodes.  How can i restrict the list in the "more like this" field to show only the nodes that have the same "taxonomy term" that the node i am currently editing ?  Thanks a lot !
76842
I want to make it so I always have 50 entities in an area. So when 1 dies/despawns/leaves the area I want it to detect that and summon in a new entity, and yes I do want them to die/despawn/leave the area so preventing those things is not an option.
116217
Is there a way to limit the number of words per post through the the_content() function or something similar?
16108
I have an entity that has a field attached to it and the values that user types into the field has to be globally(website) unique(compared to other entities).  I have added validation to the entity form but what if I create this entity programmatically? How can I prevent the entity to be saved into the storage?  I've noticed there is a validate method in ContentEntityBase, though not in ConfigEntityBase. Is this the place for it? If so, I could use some examples.
9115
I have created a fairly complicated node tree in Animation Nodes. There are various parameters of different types that I set on various different nodes.   To make this easier for others to use, I'd like to create a single node, with all the inputs named, so that there's just one place to set all the input parameters. This would look similar to how you get a node group in the materials editor or compositor. AFAIK, Animation nodes does not have node groups.  Is there a way to do this?
54414
I would want to allow certain user to edit only one page and it's subpages. How would this be possible? I tried the old Role Scoper, but it seems to have a lot of problems and bugs.
83482
I'm attempting to make a page for users to edit data for a specific content type, but I only want them to have access to some of the fields not all. To do so I created a custom form display mode for content. I have a custom controller that is meant to display this form with a custom display mode. Here is the code meant to render it.      public function showCustomForm() {         $node = \Drupal::entityTypeManager()-&gt;getStorage('node')-&gt;load('123');         $edit_form = \Drupal::entityTypeManager()-&gt;getFormObject('node', 'my_custom_form_display_mode_id')-&gt;setEntity($node);         return \Drupal::formBuilder()-&gt;getForm($edit_form);     }   And I get the error     Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException:   The "node" entity type did not specify a   "my_custom_form_display_mode_id" form class. in   Drupal\Core\Entity\EntityTypeManager->getFormObject() (line 184 of   /var/www/mydomain/http/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php).   I was using this  as an example. But still had no luck.  How would I programmatically load a node edit form with a custom form display mode?
107032
In Drupal 8, how do I validate a ConfigEntity? I tried adding constraints, but then I found out this only works for ContentEntity, not ConfigEntity.  My ConfigEntity has 2 fields, and the options of the second field should be limited based on what's selected in the first.   Through Drupals #ajax mechanism I can limit the items in the second dropdown - that all works. However, with Javascript disabled or when creating the ConfigEntity programmatically, someone can still select a wrong value for the second dropdown, that doesn't work with the first dropdown selection. I checked ConfigEntityBase but couldn't find anything related to validation.
23957
I can create a node using the following code:  $node = \Drupal::entityTypeManager()-&gt;getStorage('node')-&gt;create($array);   But if I have the node ID, how can I edit a node?
17147
Currently new users are limited to one two links in a post. If the purpose of this is, as I suspect, to prevent spam, I think it would be safe to allow unlimited internal links (i.e. links to M?S[OFU] posts).  It would be nice to do this on MSO at least, so that users can post links to examples of their problems.  Note: I know that MSO users can get unlimited links simply by linking to their S[OFU] account. Usually someone has to tell them this though; it isn't necessarily clear.
120451
I need to be able to modify every single link in an HTML document. I know that I need to use the SoupStrainer but I'm not 100% positive on how to implement it. If someone could direct me to a good resource or provide a code example, it'd be very much appreciated.  Thanks.
53727
I'm building a small web app in PHP that stores some information in a plain text file. However, this text file is used/modified by all users of my app at some given point in time and possible at the same time.  So the questions is. What would be the best way to make sure that only one user can make changes to the file at any given point in time?
115038
I installed the  module and would like to customize the sitemap.  For example, I would like to exclude some nodes that have a certain term reference field. I would also like to be able to create separate sitemaps for each content type.  Is there a way to do that?  Otherwise I could probably generate the xml sitemaps with  module.
88854
I only want blocks on the homepage. Because I don't have any nodes, and I want to keep the homepage as /node I am getting a "No front page content has been created yet." message on my page.  How do I get around this?
99544
It's a bit frustrating that, even though I'm above rep 100 on Stack Overflow, I'm still restricted with the most basic 'idiot prevention' limits on the other sites as I start there. Really, is it necessary to prevent me from creating a new tag or posting more than once in 20 minutes? I can see holding off edits, or even comments, until I've proved to have a brain in the domain in question.  You could see this as a request for a feature.