Skip to content

Conversation

bszyman
Copy link
Contributor

@bszyman bszyman commented Oct 7, 2025

📋 Description

Revised Global Contexts section for clarity and added best practices guidance.

📎 Related Issues (if applicable)

#7430

✅ Contributor Checklist

I've followed the Umbraco Documentation Style Guide and can confirm that:

  • Code blocks are correctly formatted.
  • Sentences are short and clear (preferably under 25 words).
  • Passive voice and first-person language (“we”, “I”) are avoided.
  • Relevant pages are linked.
  • All links work and point to the correct resources.
  • Screenshots or diagrams are included if useful.
  • Any code examples or instructions have been tested.
  • Typos, broken links, and broken images are fixed.

Product & Version (if relevant)

v16

Deadline (if relevant)

N/A

📚 Helpful Resources

Ben Szymanski and others added 4 commits September 25, 2025 15:34
…tup, examples of how to create a context and how to consume a context.
…tup, examples of how to create a context and how to consume a context.
…texts

# Conflicts:
#	16/umbraco-cms/customizing/extending-overview/extension-types/global-context.md
return this.#preferences.get(key);
}

getHostElement(): Element {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getHostElement() is required by UmbContextMinimal, but I'm not sure what the intent of this is? To return a DOM element? The DOM element that the context is attached to? That's kind of how it seems to be getting used in the Umbraco backoffice samples I've found, but it seems odd.

https://apidocs.umbraco.com/v16/ui-api/interfaces/libs_context-api.UmbContextMinimal.html#gethostelement-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant