Week 5
Working with Drupal 8
Basic content management
Add/edit pages/articles
Menu management
Basic Block management
Place blocks
Use custom blocks
Install/enable a theme/module
Use reports/logs
Change basic configuration
For Windows:
Install directly on c:/
(or root of a different HD: d:/, e:/)
Windows will run into issues with filenames being too long if it is installed in c:/Program files/Acquia
Use recommended
Make sure the MAMP/XAMP servers are stopped
Sites
Add/Delete Sites
Open site
Local code
Manage DB
Start/Stop servers
Of bv: weareimd ipv drupalstarter
Default is fine, 7 is better.
Pick: Start with MySQL Database dump file
root
root
When installing a site manually (with MAMP/XAMP), do the following:
4.2) Add the snippet (next slide) at the bottom of the settings.php file
$databases['default']['default'] = array(
'driver' => 'mysql',
'database' => 'database_name',
'username' => 'database_user',
'password' => 'database_password',
'host' => '127.0.0.1',
'port' => '',
'prefix' => '',
);
Change values to match your setup!
Site should then be visitable on localhost/name
You just got your first internship at a Drupal agency.
They have decided your first project will be to update a site that isn't ready yet to go live.
This is a series of exercises that will teach you how to:
Install an existing Drupal site
Using the download from previous page, install the Drupal 8 site.
Use the slides as a how-to.
Manage blocks
Use Block page settings to hide/show
blocks on specific pages
Now that we have some blocks we can add some styling.
Use browser Devtools (inspect element) to figure out which classes to use.
In the nexus_imd theme you can add custom CSS.
Add content type: Teacher
Add a new content-type: Teacher
Disable:
Add the following fields:
Disable unwanted fields:
For default view mode change:
For teaser view mode change:
Add a new path alias specifically for the new CT Teacher.
The output should look like this:
/teacher/name-of-teacher
(For name we use the title of the node)
Add some content.
Using preview function you can see the result of new nodes.
In the nexus_imd theme you can add custom CSS.
Add view: Teachers
Using Views UI, add a new view: Teachers
Go to the page /teachers to see the results.
In the nexus_imd theme you can add custom CSS.
As we will continue building upon this site.