Three presenations in 10 days
- Working with Layouts at BackDrop Live
- DevOps Summit at NYC Camp
- Migrations on budget at NYC Camp
Three presenations in 10 days
As we move many sites off of Drupal 7, we are doing some deep dives into other technical solutions. Today, a Backdrop project! Here's how we did it:
My goal: Add a block to an existing node defined by a path using Layouts
Go to Structure > Layouts
Click Add Layout
Give the new layout a descriptive title.
Select the layout template you would like to use based on the regions available.
In the Path field, you have several options:
Enter a new URL path.
This creates a NEW stand-alone Layout page on your site that is defined solely by the layout. By default on this path you will see blank page and you can add any blocks in the new layout
Enter a previously registered “system path”.
This allows you to target EXISTING pages that another module has previously defined. That module will be responsible for generating the primary content on the page, but you can use the layout to place additional blocks around it. The “Main page content” block -- generated by the module that defined the page -- will be placed into the layout automatically. Note: removing this block may cause the page to behave strangely.
If you are going to target Content with your layout, you should enter node/%. With no further conditions defined, this layout will be used for ALL node pages. (This “system path” is provided by node module, and will show the “full” view mode of the node in the “Main page content” block).
If you want to target a Taxonomy Category page, you should enter taxonomy/term/%. With no further conditions defined, this layout will be used for ALL taxonomy term pages. (This “system path” is provided by taxonomy module, and will show the term description, followed by a view of all nodes tagged with that term in the “Main page content” block).
To narrow down your condition (In this example, Nodes) further, you will add a “visibility condition”. This is where you add details about your EXISTING entity (or entities) to target the layout.
In this instance, I will use “URL path” and target my existing page with the alias “about”.
Save your layout.
Add blocks to your regions and save your layout again.
Check your entity to ensure the blocks are appearing correctly on the front end.
On October 4 Irina presented https://assignmentcalculator.com/ - a time management tool for use with assignments. The Assignment Calculator is an online tool that breaks down various projects into a series of manageable steps (each with a separate due date) and builds your personalized schedule based on due dates that you enter. Each step includes hints and "how-to" links and can be added to Google calendar. https://assignmentcalculator.com/ it has public version and Stanford version https://slc-assignmentcalculator.stanford.edu/
Here is experiment of this week
Getting ready for D7 end of life brings lots of new tools to play with, such as
More joy to come!