How can I add breadcrumbs to my pages?
Support Ticket
+issues
It seems to me that adding RDFa breadcrumbs would be useful for Google results. But I think if I just throw the code onto a card somewhere, it'll get stripped out, right?
HTML cards don't get stripped.
Yeah, but that means you can only have breadcrumbs on HTML cardtype cards and not on, say, the Episode cards I've made or Minor Character cards, right? When those are the ones I'd want it on since they are where the content is.
Or is the suggestion that I can include an HTML card that contains the breadcrumb code into the content card?
If you want to throw some code on every page, you typically include it in the layout card. I don't know what code you want to include, but typically, yes, we do that by including an HTML card somewhere, often within the head tag of the layout.
Well, it would be slightly different for different categories of pages. I guess I could do it by Layout. I was just thinking that I probably need different Layouts for my different major categories of content so that I can change the metadescription anyway.
Oh, I should also clarify, would it work if it was included not in the Layout but just as part of the content of the card?
You could make that work, but it doesn't sound desirable to me.
Ultimately everything (including the main card) is included by the layout. Just because it's included in a layout (or multiple layouts) doesn't mean it can't be related to the main card. you can do something like include {{_main+breadcrumb}} anywhere (on the layout or something included by the layout) and then use virtual cards to define what that means.
And that would allow for different contents for each _main+breadcrumb combination? characters+breadcrumb and locations+breadcrumb would be different code.
right.
How do the virtual cards fit in? I thought that was when I wanted to set up content that would be the *same* every time I invoked that virtual card. (So far I've only used this to set up a search that searches the name of the card it's attached to, so the search string never changes.)