Setting up Drupal 9

Create a project:

$ composer create-project drupal/recommended-project:9.3.1 my_site_name_dir
 

This will create a project in 'my_site_name_dir' and automatically executes composer install to download the latest stable version of Drupal and all its dependencies.

Your 'my_site_name_dir' will contain files that should be outside of your web root and not  accessible by the web server. The web root will be 'my_site_name_dir/web'.

Install Php Filter:

$ composer require.  drupal/php
 

Alternate Installation:

Clone the below repo

https://github.com/apfromiit/drupal9

and run $ composer install

 

Add File Permissions:

$ sudo chmod +777 web/sites/default/files

Copy default.settings.php to settings.php

$ sudo chmod +777 web/sites/default/settings.php
 

Open in browser to complete the setup.

 

Remove File Permissions:

$ sudo chmod 755 web/sites/default/settings.php

 

Add new item to Main Navigation Menu:

Step 1: Create a tagname in Taxonomy:

 

1. Goto Manage → Structure → Taxonomy → VOCABULARY NAME: Tags →

 

 

2. Click

 

 

3. Enter tagname and click

 

 

 

Step 2: Create a page view for new menu item:

 

1. Goto Manage → Structure → Views and click
2. Enter View name
3. Under VIEW SETTINGS, Enter as below.
Show: of type: tagged with: Sorted by:

 

 

4. Enter PAGE SETTINGS and Menu Link details as shown below and click

 

 

5. Click

 

Now, adding tags to article will render the article in corresponding page.

 

We can remove the unwanted blocks by deleting them on the context menu provided on top right corner of every blocks.