Using / in Page Title

I’m making a Music Catalog where each Artist gets their own page. I use their Artist Name as the Page Title. Just came around to do a page for AC/DC, which saves just fine. But when I run a query on a separate page to display the names, the entry for AC/DC just displays as DC.

I’ve tried quotes, double quotes and backticks around the Title, all which save fine, but the query result is always the same.

For the inline template, I am using:

| Song Title | Artist |
|-|-|
{{#each {artist}}}
|{{atfs}}|[[{{name}}]]|
{{/each}}
  • the ‘atfs’ is a special tag and the result builds a table with the Page Name made into links.

This template works fine with all my other pages. AC/DC is the only page with the / in it’s Title.

How should I be saving the Page Name as a String of Characters like this that would be displayed correctly after being queried?

Does it work if you use [[{{name}}|{{name}}]] instead?

I would try to avoid stuff like this. Silverbullet (at least from the user perspective) doesn’t directly have the idea of a folder. It kind of emulates folders by using slashes in page names, as you are seeing. A folder AC with a file DC. Avoid / and . in page names. You could use emojis like this one e..g :high_voltage:

This should work but is a little hacky, especially if the artist pages are stored in a sub folder, because then you will have the full prefix displayed

That’s true, I didn’t consider that AC/DC as a name would imply a pseudo-folder structure

Maybe you could use frontmatter properties instead of file names?

Especially in V2 it can be pretty easy:

${query[[
  from index.tag "song" 
  select {Title=title, Artist=artist or ""}
]]}

This would render a nice table:

Given that your songs would have the frontmatter:

---
tags: song
title: Back in Black
artist: AC/DC
---

Bonus is that now it doesn’t really matter how you structure your folders and notes. Mine was titled music/bib and music/mop :wink:

Thanks all for the insights!

Yes I see now in my file structure how this became ‘folder/file’.

I went with the use of Emoji rn for the quickest work around. That handles the issue while staying thematic to the Artist.

I bookmarked some other replies to come back to. My idea is not fully formed so I’m just going with my instincts at the moment, so it’s good to see some advanced thinking that I may want to consider.

In my gut, giving each artist their own page makes room for additional content in the future.

Having not worked in such a dynamic notetaking space, it could be short sighted of me, but the notion is that each page will end up containing a bunch of ephemera that I can never find on the Music Chart sites. Almost like a trivia wiki, but I’m starting with just getting them entered with a notable (to me) reference.

Anyway, thanks again!