How to have a dropdown select list for entity reference field in Drupal 8?

For Drupal 8, the entity reference field displayed in form is a textfield with auto-complete feature for you to select the entity, is it possible to have it be dropdown select list instead? I have tried using views as the reference method to check the possible solution, but without luck, someone can help me with this?

Views: Custom template - How to print ID, date and author?

Hello everyone,

I guess, that this has been asked before. So let me apologize first!

I am trying to create a custom template for a view I created. It's working so far and I am able to print some of the fields in the view, but not all of them. So here are my questions:

Frist question - Is this correct?
In views-view-fields--ViewsName.html.twig I print

{{ row._entity.field_NAME.value }}

problems to create a json view (rest export) in Drupal 8, select count(*) from content type = "..." and published = yes

I have problems to create a json view (rest export) in Drupal 8, my goal : select count(*) from content type = "..." and published = yes
The output must be json notation and the total amount of nodes for a specific content type.
In the Advanced selection I set "use aggregation = yes"
under Fields I use the aggregation setting "count" on content type
Filter criteria: published status = yes, content type = myCT

Result: [{"type":"1"},{"type":"1"},{"type":"1"},....]

Tour yml isn't showing up

Hi everyone,

I'm trying to write my own Tour yml, but so far I haven't had any luck making
it work and I was hoping a more experienced user might spot something I've
missed. Here's the details...

Creating New Region

I'm trying to add a custom region to the Zircon theme.

I've been toying around with it for a few weeks now.

I can get the region to show up when I click "Demonstrate Block Regions" however, I get the block/view I created to show up I the region that I created. It also shows up in the block layout page, and I can add blocks to the region but again, the block/view doesn't show up in the region.

BaguetteBox Module

Hi there,

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x