Skip to content

Question for guidance about how to document 'how to set a default value' #7914

@marcemarc

Description

@marcemarc

Hi Docs Team!

Hope all is well, find and dandy with you, I have a question really...

In the olden days, the olden times, we had documentation in here that explained how to extend the Umbraco Backoffice to provide a default value for a property, to save editors a bit of time when they create new things, and this was achieved by handling a much abused generic EditorModelSendingContentNotification.

Here's the page:

https://docs.umbraco.com/umbraco-cms/13.latest/reference/notifications/editormodel-notifications

Really though it shudda never lived here, because really people are looking for 'how to set a default value for a property' they arent' realllly looking for 'how do I handle a generic notification I've never heard of' - but we've documented the 'tech' rather than the 'need' - it may have even be me :-(

(although I half recall, in the old old custom documentation system we had a redirect if people searched for how to set a default value to redirect to this very notifications page)

Anyhow, now it is the future world, we don't set a default value using C# and these notifications do not exist

bye bye notification - Helllooo Property Value Presets!

The documentation for which lives here: https://docs.umbraco.com/umbraco-cms/customizing/extending-overview/extension-types/property-value-preset

But if you ask Gitbook Assistant 'How to set a default value on a Document Type property' or similar such questions it doesn't think it's possible, because we've documented 'the tech' and not 'the need'?

Image

So I was thinking two possible things.

  1. Restore the editormodel-notifications page into the Umbraco 17 docs - but have content there that explains these have been removed, and if you were looking for how to set a default value - have a look at property value presets - this would then be found by the AI?
    or
  2. Just create a strongly worded page about how to set a default value that the AI assistant can found, with an example, linking to the presets page - so we are documenting the need rather than the tech
    or
  3. Update the text on the current presets page, so it more strongly mentions setting default values, so it's more discoverable in that context
    or
  4. Nothing, because maybe people will just find the existing page anyway!

Property Value Presets are super cool!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions