taxonomy terms: Drupal adds 3 categories and the first category would have 7 subcategories

I am trying to create an educational website.
As I mentioned in the title, my requirements are to add 3 main categories, the first category has 7 subcategories, each subcategory has 6 subcategories.

Ex: Main category: Courses
7 subcategories (English, French, math, physics, etc.)
7 subcategories for each subcategory ex for English (grammar, comprehension, etc.)
I don't know how to do that with the taxonomy, could someone give me a hint? Thank you

Show multiple & # 39; name fields & # 39; of drupal 7 in a row view?

Using this in D7:

The name field is in a content type & # 39; book & # 39 ;. 1 to many authors.

In views, I want to see the name of the book and the authors. Currently, it shows a repeated row by author. How do you consolidate them in a row? The field configuration does not seem to include anything for this.

Thank you, I'm sorry if this is a novice territory of the century.

topics – Render HTML in Drupal 8 error messages

I am working with Twig templates, and I often see messages like this in the browser when I make a mistake:

The website encountered an unexpected error. Please try again later.

TwigErrorSyntaxError: Unclosed "{". in TwigLexer->lexExpression() (line 153 of themes/mytheme/templates/page.html.twig).
TwigLexer->lexBlock() (Line: 126)
TwigLexer->tokenize(Object) (Line: 705)


Is there a way to automatically represent the previous HTML instead of having it as a string? Thank you.

nodes: correspondence of Drupal 8 with the node_access function in Drupal 7

I want to ask a silly question, but here it is anyway: I need to test if a certain user (in my case, the current and connected user) has access to a particular node for one of the existing operations (see, create, edit or delete).

In Drupal 7 you could try this using the node_access function (!node!node.module/function/node_access/7.x) and it would be as simple as this:

if(node_access('view', $node, $account)) {
  // Perform something

The return value would be TRUE or FALSE. How can I achieve the same result in Drupal 8?

I will execute this code from a custom access verification for a specific route that I am configuring for my custom module.

Thank you!

Drupal 7.x pop-up message No configuration settings or not in the configuration settings menu

I am trying to use Drupal Popup Message 7.x-1.2.
I already installed it and enabled it. I received a notification saying that I can access it in admin / config / user-interface / popup_message.

But when checking there is no popup_message, so I can't use it.
Is there anything I can do with this?

Get a config_installer error not found after upgrading to Drupal 8.8 when accessing admin / reports / status

After updating to Drupal 8.8 through the composer, I see the following error when accessing admin / reports / status. It seems to point out that the config_installer profile is missing, but that profile is in the file system.

  The website encountered an unexpected error. Please try again later.

DrupalCoreExtensionExceptionUnknownExtensionException: The module does not exist or is not installed. in DrupalCoreExtensionExtensionList->getExtensionInfo() (line 346 of core/lib/Drupal/Core/Extension/ExtensionList.php).

call_user_func_array('system_requirements', Array) (Line: 403)
DrupalCoreExtensionModuleHandler->invokeAll('requirements', Array) (Line: 111)
DrupalsystemSystemManager->listRequirements() (Line: 49)
call_user_func_array(Array, Array) (Line: 123)
DrupalCoreEventSubscriberEarlyRenderingControllerWrapperSubscriber->DrupalCoreEventSubscriber{closure}() (Line: 573)
DrupalCoreRenderRenderer->executeInRenderContext(Object, Object) (Line: 124)
DrupalCoreEventSubscriberEarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
DrupalCoreEventSubscriberEarlyRenderingControllerWrapperSubscriber->DrupalCoreEventSubscriber{closure}() (Line: 151)
SymfonyComponentHttpKernelHttpKernel->handleRaw(Object, 1) (Line: 68)
SymfonyComponentHttpKernelHttpKernel->handle(Object, 1, 1) (Line: 57)
DrupalCoreStackMiddlewareSession->handle(Object, 1, 1) (Line: 47)
DrupalCoreStackMiddlewareKernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupalpage_cacheStackMiddlewarePageCache->pass(Object, 1, 1) (Line: 85)
Drupalpage_cacheStackMiddlewarePageCache->handle(Object, 1, 1) (Line: 47)
DrupalCoreStackMiddlewareReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
DrupalCoreStackMiddlewareNegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
StackStackedHttpKernel->handle(Object, 1, 1) (Line: 694)
DrupalCoreDrupalKernel->handle(Object) (Line: 19

Updating – Error updating to Drupal 8.8.0

Drupal updated from 8.7.8 to 8.8.0 with:

composer update --with-dependencies

That part went well, but when I run:

drush updb

I get the following error:

In ProcessBase.php line 188:

  Unable to decode output into JSON: Syntax error                                                                             

  Error: Call to a member function getConfigDependencyKey() on null in DrupaltaxonomyPluginviewsfilterTaxonomyIndexTid-  
  >calculateDependencies() (line 394 of /var/www/html/drupal/web/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndex  

Check the code a bit and say:

  public function calculateDependencies() {
    $dependencies = parent::calculateDependencies();

    $vocabulary = $this->vocabularyStorage->load($this->options('vid'));
    $dependencies($vocabulary->getConfigDependencyKey())() = $vocabulary->getConfigDependencyName(); // <-- line 394


AND $this->options('vid') it's empty and $vocabulary var becomes null.

Any idea what's wrong here?

Drupal 8 – Where the temporary directory is defined in the code

I need to know where the tmp directory is set in drupal code 8. In fact, the upload_tmp_dir value is not set in php.ini and I don't have access to change it. Then I need to know where in the code the value is defined and change it.

Thanks in advance

Migration – How to upgrade to Drupal 8 from 7 with a clean installation?

I currently have a Drupal 7 site that I want to install Drupal 8, but I do a clean installation. This means deleting everything and starting with a new instance of Drupal 8. I have seen many articles on how to update where content types, fields, code and other parts are migrated. However, do I just want to upgrade to Drupal 8 without any migration?

How can I upgrade to Drupal 8 without any migration for a clean instance?

Topics: Drupal 8 view template override with context filter

I have a view that lists the links to all pages in a certain type of content.

How do I create a template override for that view?

I tried:
views-plain-view – my-view-name -%. twig.html

And several other combinations.

The view path is: / my-view /%

Nothing seems to work and I've spent about an hour searching for answers on Google. I am really stuck. I don't know how to name the template override.