Document Fallback.ToDefaultLanguage in IPublishedContent properties#8166
Conversation
|
Thanks for opening this PR! 🎉 Quick question: Does this PR include any AI-generated content? AI tools are absolutely welcome here! We only ask that you follow our AI contribution guidelines to help keep the documentation consistent and trustworthy. Drop a quick comment to let us know! |
There was a problem hiding this comment.
Pull request overview
Documents the Fallback.ToDefaultLanguage option in the IPublishedContent properties “Fallbacks” section, aligning the docs with the fallback policy introduced in the CMS and ensuring readers know how to use it across currently supported Umbraco versions.
Changes:
- Added a new “Fallback to Default Language” subsection describing the behavior and intent.
- Added a Razor example showing
fallback: Fallback.ToDefaultLanguageusage. - Applied the same documentation update consistently across v13, v16, v17, and v18 docs.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| 18/umbraco-cms/develop-with-umbraco/templating-and-rendering/querying/ipublishedcontent/properties.md | Adds a “Fallback to Default Language” subsection with explanation and example in the Fallbacks section. |
| 17/umbraco-cms/develop-with-umbraco/templating-and-rendering/querying/ipublishedcontent/properties.md | Same documentation addition for v17. |
| 16/umbraco-cms/reference/querying/ipublishedcontent/properties.md | Same documentation addition for v16. |
| 13/umbraco-cms/reference/querying/ipublishedcontent/properties.md | Same documentation addition for v13. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Description
The Fallbacks section of the IPublishedContent properties documentation was missing the
Fallback.ToDefaultLanguageoption.This fallback policy (
Fallback.DefaultLanguageenum value /Fallback.ToDefaultLanguagehelper) was added in umbraco/Umbraco-CMS#13814 and shipped in Umbraco 11.3.0. It falls back to the value from the site's default language without requiring a specific culture to be specified.Changes
Added a new
### Fallback to Default Languagesubsection to the Fallbacks section in all currently supported versions:13/umbraco-cms/reference/querying/ipublishedcontent/properties.md16/umbraco-cms/reference/querying/ipublishedcontent/properties.md17/umbraco-cms/develop-with-umbraco/templating-and-rendering/querying/ipublishedcontent/properties.md18/umbraco-cms/develop-with-umbraco/templating-and-rendering/querying/ipublishedcontent/properties.mdThe API naming was verified against the
Fallbackstruct in the CMS source.