JSON to Node field

I have a few JSON APIs which is required to be an autocomplete field in Article content. For example:

  • List of restaurants in a JSON API -> restaurants field in Article content type.
  • List of ingredients in another JSON API(different API than restaurants) -> ingredients field in Article content type(Multivalued).

What would be the optimal approach to build it? Any contributed module which can help in the requirement.🤔  

Tutorial: Custom Block Visibility Plugins and the Condition Plugin API

I've created a tutorial on creating custom block visibility plugins, shown in the vertical tabs on block configuration pages. The tutorial can be seen here: https://www.jaypan.com/tutorial/custom-block-visibility-plugins-and-cond...

All mails go to admin

I have the problem, that all the mails like pw reset, notifications and user contact form were send to the admin. I'm perplexed and confused about this issue.

Having different Taxonomy Terms for each language

Hi - spent a good amount of time searching for an answer but now I am stuck!

I am on Drupal v8.9.13 and I have set up my site as multilingual and it generally works fine.

I have a vocabulary that I use as a Taxonomy Menu.

If I add a term in the original language and then add the translation I can clearly see the differently translated titles when I switch languages - as expected.

However, I can't work out how to add a term so it ONLY appears in one language?

Drush commands within a BASH script executed by Cron job not working

Drupal Version: 8.1.7

PHP OS: Red Hat Enterprise Linux

Drush Version: 8.4.0

What I am attempting to do is have a Cron job execute a small BASH script that I've written. This script checks if a particular service is active in my RHEL environment and if it isn't my Drupal site gets put into maintenance mode. There is a Drush command at the start that checks if the site isn't already in maintenance mode and a second Drush command later to put the site into maintenance mode if a few conditions are met. 

The Cron job I set up looks like the following:

Route altering at the entity level

I created a base entity using drupal console, and then created the bundles of that entity in the UI. The result is that all of the bundles are under /admin/structure/entity_type/ and to add entities of any of the bundles, I access them via: /admin/structure/entity_type/add. 

Is there a way I can alter the route for each bundle, so for example, the route for each crud action is like this:

/admin/structure/bundle-name1/add
/admin/structure/bundlename1/entityid/edit
/admin/structure/bundlename1/entity/delete

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x