This submission contains a custom drupal plugin chart_block_nodes
to display a chart on the front page with a count of nodes for each defined content type and a custom template bootstrap_cdn_subtheme
with 404 error handling.
Clone the repository to your local machine.
Following are basic instructions on how to restore the site on your local Acquia Dev Desktop Environment.
git clone https://github.com/npnjuguna/un-habitat-patrick-njuguna-drupal-dev.git
-
In the
un-habitat-patrick-njuguna-drupal-dev
folder, the is a foldernon-drupal
that containspatrick-njuguna-inc-files-folder.zip
files with code files andpatrick_njuguna.sql
database dump. -
Extract the
patrick-njuguna-inc-files-folder.zip
to a location on the machine. A folderpatrick-njuguna
will be created which has theweb
root folder. -
Using Acquia Dev Desktop, add a site using the
Import Local Drupal website
option and fill the options below:- Local codebase folder: choose the
web
folder you have just extracted - Local site name:
patrick-njuguna
- Use PHP:
7.1.11
- Database:
Start with MySQL database dump file
- Dump file: choose the
patrick_njuguna.sql
- New database name:
patrick_njuguna
- Local codebase folder: choose the
-
Click
OK
to import. -
Open the local site: http://patrick-njuguna.dd:8083/
-
The front end will display.
-
At the bottom there is a
Login
link. Reset the password for drupal useradmin
and click login: -
You can explore http://patrick-njuguna.dd:8083/admin