Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-02 14:01:15

kimiko
Member
Registered: 2005-12-01
Posts: 35
Website

Different permalink styles

Hello,

is it possible to have different permalink styles for different sections?

journal:
/journal/302/something-nice

about:
/about/sitename

some article:
/article/how_you_get_tons_of_underscores

The id number just doesn’t fit in other parts of the website. Sure, it’s nice in dynamic parts like the journal/blog, but for static content I’d rather keep it simple.

Offline

#2 2005-12-02 14:27:27

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Different permalink styles

Well you could just change to /section/title/ so everything looks the same. You can’t set different formats within TXP. There is this though I have never used it so I couldn’t help with it’s usage. You would need to ask any questions about it within that thread.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#3 2005-12-02 14:32:40

kimiko
Member
Registered: 2005-12-01
Posts: 35
Website

Re: Different permalink styles

It’s currently set to /section/title .. but what happens if there is a “short-URL title” (page slug) already excists within that same section?

Offline

#4 2005-12-02 14:44:53

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Different permalink styles

“page slug”? Did you use WordPress? If you look in the “Advanced Options” on the article editing screen you will see that TXP creates a URL-only title. This is normally identical to the article title but has hyphens instead of spaces. If you create an article with an identical title to an existing one TXP pops a little warning onto the screen but creates the articles and adds a “2” to the URL-only title to differentiate it. It’s that URL-only title that appears in the address bar.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#5 2005-12-02 17:44:25

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: Different permalink styles

Anyone familiar with the unheralded nck_olm plugin?

Offline

#6 2005-12-02 19:36:00

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Different permalink styles

Nice one Michael. That’s been kept quite. Has it been mentioned in the plug-in forum?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#7 2005-12-03 05:25:35

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: Different permalink styles

Not that I know of, Stuart. I found out about it via this thread. I have big plans for one of my sites in conjunction with this, though, just as soon as I get some time.

Offline

#8 2005-12-03 06:04:16

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Different permalink styles

Nice find. I don’t use this sort of stuff but it looks a lot simpler than the other plug-in and I think it might do exactly what kimiko wants. :)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

Board footer

Powered by FluxBB