# New on Edge: Object Decorators

**URL:** https://community.silverbullet.md/t/new-on-edge-object-decorators/759
**Category:** Edge
**Created:** [July 29, 2024, 7:25pm UTC](https://community.silverbullet.md/t/new-on-edge-object-decorators/759 "2024-07-29T19:25:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![zef](https://community.silverbullet.md/user_avatar/community.silverbullet.md/zef/32/7_2.png) [@zef](https://community.silverbullet.md/u/zef)
#### Post date: [July 29, 2024, 7:25pm UTC](https://community.silverbullet.md/t/new-on-edge-object-decorators/759/1 "2024-07-29T19:25:39Z")

</div>

This is a more generic mechanism that does something similar the `pageDecorations` thing in SETTINGS did before: the ability to extend objects with attributes dynamically. More information and examples here:

> **[Object Decorators](https://silverbullet.md/Object%20Decorators)**
>
> Object decorators are an advanced technique that can be used to add attributes to Objects dynamically whose values are calculated dynamically (on-the-fly) based on an expression. warning Warning This feature is still experimental and may change in...

You’ll need to migrate your existing `pageDecorations` to become `pageDecorators`:

> **[Page Decorations](https://silverbullet.md/Page%20Decorations)**
>
> Page decorations allow you to “decorate” pages in various ways. warning Warning This feature is still experimental and may change in the (near) future. Supported decorationsprefix: A (visual) string prefix (often an emoji) to add to all page names....

---

<div class="post-metadata">

### Author: ![meain](https://community.silverbullet.md/letter_avatar_proxy/v4/letter/m/4da419/32.png) [@meain](https://community.silverbullet.md/u/meain)
#### Post date: [July 30, 2024, 6:41am UTC](https://community.silverbullet.md/t/new-on-edge-object-decorators/759/2 "2024-07-30T06:41:07Z")

</div>

I think the docs on Page Decorations is incorrect(could be that I am doing something wrong), but I could not get the code snippet there to work.

```yaml
objectDecorations:
- where: "tags = 'person'"
  pageDecoration.prefix: '"🧑 "'

```

I did however get the following to work:

```yaml
objectDecorators: # decorators, not decorations
- where: "tags = 'person'"
  attributes: # need this key and nesting
    pageDecoration.prefix: '"🧑 "'

```

_Also, it might be worth calling out that even boolean values will have to be quoted._

---

<div class="post-metadata">

### Author: ![zef](https://community.silverbullet.md/user_avatar/community.silverbullet.md/zef/32/7_2.png) [@zef](https://community.silverbullet.md/u/zef)
#### Post date: [July 30, 2024, 7:00am UTC](https://community.silverbullet.md/t/new-on-edge-object-decorators/759/3 "2024-07-30T07:00:18Z")

</div>

You’re right, that’s a mistake. I’ll fix it soon.
