How can I add breadcrumbs to my pages?+discussion

HTML cards don't get stripped.

--Ethan McCutchen.....2014-01-15 16:56:37 +0000

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.

--Lora Friedenthal.....2014-01-15 17:40:46 +0000

Or is the suggestion that I can include an HTML card that contains the breadcrumb code into the content card?

--Lora Friedenthal.....2014-01-15 17:44:22 +0000

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.

--Ethan McCutchen.....2014-01-15 17:49:48 +0000

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.

--Lora Friedenthal.....2014-01-15 17:57:50 +0000

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?

--Lora Friedenthal.....2014-01-15 19:32:23 +0000

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.

--Ethan McCutchen.....2014-01-15 19:37:44 +0000

And that would allow for different contents for each _main+breadcrumb combination? characters+breadcrumb and locations+breadcrumb would be different code.

--Lora Friedenthal.....2014-01-15 19:55:57 +0000

right.

--Ethan McCutchen.....2014-01-15 19:58:13 +0000

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.)

--Lora Friedenthal.....2014-01-15 20:17:47 +0000