# Command Button with Title Alias does not work in Table

**URL:** <https://community.silverbullet.md/t/command-button-with-title-alias-does-not-work-in-table/1701>\
**Category:** v1: Troubleshooting (legacy)\
**Created:** [January 26, 2025, 4:03pm UTC](https://community.silverbullet.md/t/command-button-with-title-alias-does-not-work-in-table/1701 "2025-01-26T16:03:50Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![yggi](https://community.silverbullet.md/user_avatar/community.silverbullet.md/yggi/32/956_2.png) [@yggi](https://community.silverbullet.md/u/yggi)\
**Post date:** [February 1, 2025, 4:06pm UTC](https://community.silverbullet.md/t/command-button-with-title-alias-does-not-work-in-table/1701/4 "2025-02-01T16:06:48Z")

</div>

Update, I just got it to work with a very ugly hack: Just add the backslash to the name of the command as well 🤠 (I want to use this in templates with [Command in space-lua to set page attributes](https://community.silverbullet.md/t/command-in-space-lua-to-set-page-attributes/1696)):

````auto
```template
| Page | Stars |
| ---- | ----- |
{{#each {page where stars>=0}}}
|{{name}}| {{stars}} {[Page: Set Attribute\|Add Star]({"attribute": "stars","change":1, "page":"{{name}}" })}|
{{/each}}
```

```space-lua
command.define {
  name = "Page: Set Attribute\\",
  run = function(a)
    system.invoke_command("Page: Set Attribute",a)
  end
}
```

````

Turns into

 ![2025-02-01T16:52:55,428411529+01:00](https://community.silverbullet.md/uploads/default/original/1X/634d72b3dad2d83f445cf04e311a471d3f6f6523.png)

The `Add Star` button triggers the command `Page: Set Attribute\\` (need to escape `\` itself in lua 🤪 ), which calls `Page: Set Attribute` and the ⭐ is added. 🤩

Bonus: Side effect of using a template is that clicking the button does not enter edit mode but triggers it right away!

Messing with the command name like that feels very wrong (and pollutes the command pallete), but it gets the job done for now.

---

_[View the full topic](https://community.silverbullet.md/t/command-button-with-title-alias-does-not-work-in-table/1701)._
