In a nutshell, context allows you to create certain conditions ("contexts") that will聽trigger聽"reactions" to that context. Contexts allow a site owner to create tasks on the site that are automated that might otherwise be time consuming to do manually.聽For many new users and simple site builders, using Edit Layouts to place聽blocks is enough to get the job done. If the job gets done quickly and correctly, isn't that all that should matter? Stick with what works.
For more advanced projects that have complex layouts using Context is a powerful way to add and display reusable blocks of content on your site.聽The Context feature is available聽in the聽听补苍诲听听. Enable one of these bundles聽to add the context feature to your site.聽
Use Cases of the Context Feature:
Below are a few examples of basic context use cases. We also have online tutorials for common context use cases.聽
- You wish聽to have a certain block聽be displayed in a specific region聽on every page of your site, setting up a context that will do this saves you from manually adding the block to every page via Edit Layouts.
- Imagine you want this block to show in the first sidebar region on the home page but in the footer area on all other pages. This can be accomplished in context.
Use Case聽Context Tutorials on Web Central:
- Creating breadcrumb navigation聽on聽articles
- Placing a block in a section of your site
Context allows you to even聽set聽multiple聽conditions and reactions.聽What if you want to make sure that blocks always appear in a particular order? You can order blocks within a particular context by dragging them to your preferred order, but if you are adding blocks to the same region via Edit Layouts on a page also, ordering gets unpredictable, so you might need to聽alter聽block weights to produce your desired display.
As you can imagine, using the Context feature will require some exploration on your part. Don't be afraid to play with the conditions and reactions to see what you can do and if the options are what you need.