Hi Ian, and thanks for the question. This sounds like you are not completely familiar with how Layouts work (it's a complex topic! search for other Layout questions in the forum, or watch the videos StPaulTim has created.)
Contexts are like "add ons". So, you can add a node or a term as context to any layout - that will make that particular node or term available to all the blocks of that Layout.
Let's say you want to add a term context to your layout. But how does the site know WHICH node or term you want to add to the layout? There are basically two ways:
- You can use a placeholder in the layout path, and tell Backdrop to use that as the term id. For example, your path could be: my-path/%. The Layout UI will then allow you to choose the type of context to add based on that placeholder. You can choose a term, a node, a user, etc. So, if you visit "/my-path/4" then the Layout will automatically load the term with ID 4, which will be available to the blocks.
- OR you can "hard code" the term ID. For example, if your layout path is /my-path you can manually add a term context. In that case the UI will ask you to specify the Term ID (which is hard-coded, and will always be the same for that particular Layout).
I hope this helps! Keep in mind that it is possible to have more than one placeholder in the layout path, e.g., my-path/%/%, and choose a different entity (node, term, user) for each of those placeholders.
Hi Ian, if you look for the ID of a specific term, go to the page which lists the terms of a vocabulary, e.g.
admin/structure/taxonomy/tags
, look for the term in question, and hit its "Edit" link. You will find the URL including the term ID in the address bar of your browser.In the following example the term ID is
4
:https://example.org/taxonomy/term/4/edit?destination=admin/structure/taxonomy/tags