Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2024-01-27 18:14:17

amordecosmos
Plugin Author
From: London (Hometown: Vancouver)
Registered: 2004-08-03
Posts: 112
Website

Breadcrumb URL pattern

Today, for the first time, I noticed that one of the options for URL pattern in preferences->site->Article URL Pattern is ‘breadcrumb’, which indicated articles will be set as ‘/breadcrumb/title’.

I changed a test site, and the resulting pages show ‘/section/title’.

What is it supposed to do?

Offline

#2 2024-01-28 08:24:08

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,702
Website

Re: Breadcrumb URL pattern

amordecosmos wrote #336475:

… Article URL Pattern is ‘breadcrumb’, which indicated articles will be set as ‘/breadcrumb/title’. … I changed a test site, and the resulting pages show ‘/section/title’. What is it supposed to do?

That could be right if the article has no categories assigned. You should get:

/section/
/section/article    (article has no categories)
/section/category-name/article    (one category assigned)
/section/category-name/other-category-name/article    (two categories assigned)

You can try it out on the demo sites by switching the url scheme and duplicating the demo article with one or no categories.


TXP Builders – finely-crafted code, design and txp

Offline

#3 2024-01-28 11:35:27

etc
Developer
Registered: 2010-11-11
Posts: 5,129
Website GitHub

Re: Breadcrumb URL pattern

Use with caution, the breadcrumb will include the whole path to the article category(ies).

Offline

#4 2024-01-29 17:25:11

amordecosmos
Plugin Author
From: London (Hometown: Vancouver)
Registered: 2004-08-03
Posts: 112
Website

Re: Breadcrumb URL pattern

Thank you. After all these years, I’m still discovering new cool things about TXP.

Last edited by amordecosmos (2024-01-29 17:25:27)

Offline

#5 2024-01-31 20:55:38

colin99
Member
Registered: 2005-11-15
Posts: 68

Re: Breadcrumb URL pattern

amordecosmos wrote #336499:

Thank you. After all these years, I’m still discovering new cool things about TXP.

Your USERID caught my attention!

Colin in Victoria B.C.


On the World Wide Web since Day 1 – Editor/Creator – Coffeecrew.comCoffee.bc.ca
Twitter – Twitter.Com/CoffeeCrew -

Offline

Board footer

Powered by FluxBB