How to publish a content type for specific roles

Hello,

I have a content type.

I like authenticated users only can view the nodes for the content type. Public are not allowed to view any nodes for that type.

People > permission > view content type > selected authenticated users. Anonymous users option is not selected. Public still can view.

Used this module. Rebuilt the permission. Did not work.

How to reference existing user at the time of node creation

Hello, 

I have a content type. 

I have a list of users. 

When I add a node, I like to have a field which should allow me to select an user from the active users list. 

How can I do it? Which module to use? I have searched online but I could not find something specific to my need. 

Thanks!

How to notify Views of Node Field Value

I have a Commerce Order Item view I need to get notice of a change in any node of a particular content type. The view has a Link button (created from Custom Text field) that users click to create a node of the content type with the fields prefilled with data from the URL. There is a boolean field in the node, I want a way to send communicate the users decision (Yes/No) to the view so that with that the Link Button for the row can be made either active or inactive. One of the field in the node contains the Order Number, which is also set in a field of the views respective target row.

[Solved] Get entity id of reference entity in views

Hello,

I have 2 contents type :

  • Testimonial
  • Installer

In the "testimonial" content type I have a field which is a reference entity of installer.

When I enter a "testimonial" I choose an installer among those available. It well works .

When "testimonial" is displayed, the installer field is displayed in the content of the node as a label (I don't want entity display).

I want to add on bottom of the page a block with informations about "installer".

I try to make a view block that displays only the relevant installer.

How to install Drupal with Composer ?

Hi, which of these 2 command lines should you use for a new Drupal project ?

What is --stability dev and --no-interaction used for ?

$ composer create-project drupal/recommended-project /home/ubuntu/www-example-com

or

$ composer create-project drupal/recommended-project:~8.8.0 /home/ubuntu/www-example-com --stability dev --no-interaction

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x