# Newbie Questions

**URL:** https://community.silverbullet.md/t/newbie-questions/593
**Category:** General
**Created:** [July 8, 2024, 12:47am UTC](https://community.silverbullet.md/t/newbie-questions/593 "2024-07-08T00:47:03Z")
**Posts on this page:** 1
**Showing post:** 2

<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 8, 2024, 12:07pm UTC](https://community.silverbullet.md/t/newbie-questions/593/2 "2024-07-08T12:07:17Z")

</div>

> [@qwacko](#):
>
> Is there an easy way to create a sub-page? When using silverbullet as a PWA there isn’t access to the nav bar so the only way to add a page would be to manually type out the full current path + new page name. I have added the following widget at the top of my pages to open up a sub page called New Page, but it feels like a bit of a hack (and I then need to rename the page to have it work):

Quick question about “there isn’t access to the nav bar”, what do you mean by this? You do see the regular SilverBullet navigation bar right?

As to how to do this: I personally don’t regularly create sub-pages under the current page, but I do often create pages at the same level. To do this more efficiently, you can open the Page Picker and then hit space (also works on mobile), which will complete the path of the current page excluding the last path segment (so basically prepare you to create another page in the same folder).

What you can also do is create a [Live Template Widgets:](https://silverbullet.md/Live%20Template%20Widgets:)

Create a page somewhere (name doesn’t matter) with the following:

```auto
---
tags: template
hooks.top:
  where: 'true'
---
{[Navigate: To Page|Create sub-page]("{{@page.name}}/new")}

```

This will put a button on top of every page automatically that when you click it goes to that same page name with `/new` attached to the end. Again, not perfect because you have to rename it afterwards but getting closer.

> [@qwacko](#):
>
> Is there a way to tag an entire table, or is it only individual rows? In some use cases that I have, I may have multiple tables on a single page, and I want to have a spacescript that reads data from only specific tables. My current understanding is that I need to tag each table row to make this happen? Similar for tasks, I understand that I can only tag each task individually, no way to tag by page structure?

What do you mean with tables here? You mean like a markdown table or something else?

> [@qwacko](#):
>
> `task where page = '{{@page.name}}' and ({{#each @currentTag in @page.tags}}tags = '{{@currentTag}}' or {{/each}} false)`

Oh wow, I’m surprised this works, but good, although a bit scary. What you can do in general is write a custom function that does something like this:

````auto
```space-script
silverbullet.registerFunction({name: "hasTagOverlap"}, (obj1, obj2) => {
  if(!obj1.tags) {
    return false;
  }
  for(const tag of obj1.tags) {
    if(obj2.tags && obj2.tags.includes(tag)) {
      return true;
    }
  }
  return false;
});
```

```query
page where hasTagOverlap(., @page)
```

````

---

_[View the full topic](https://community.silverbullet.md/t/newbie-questions/593)._
