Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-10-27 16:34:24

kryptondog
New Member
Registered: 2005-12-04
Posts: 4

"Subsections"? Page hierarchy question

Hi all,

After a long hiatus, I’m back to using Textpattern and I couldn’t be happier. However, I’m a little rusty, and I came upon something that I’m pretty sure should be easy to do, but haven’t found a way to do it so far.

My URLs at the moment are formatted as /section/id/title. I’ve got a news section set up as site.com/news/ (shocking, I know). It’s not the default page of my site; that’s just a static page for the moment. Currently, my permalinks look like this:

mysite.com/news/39/bogus-post-title

If possible though, I would like to have them appear like this:

mysite.com/news/archive/39/bogus-post-title

Additionally, when a user goes to mysite.com/news/archive/, naturally enough, I’d like them to see the archive. This seems to me to be a much more logical and intuitive url scheme than to simply have a separate section at mysite.com/archive/ or something like that.

Anyone have any insight into this situation? Or perhaps you’ve come up with a solution for a similar problem before? Any help would be greatly appreciated.

Offline

#2 2010-10-27 17:19:38

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: "Subsections"? Page hierarchy question

Textpattern doesn’t support subsections, but you can mimick the structure using categories. With the plugin gbp_permanent_links you can create URLs like /section/category/id/title. If you wish the plugin also lets you insert plain text in the URL, so that ‘archive’ wouldn’t even have to be a category, and /news/archive/ is just your section (news) landing page.

Last edited by els (2010-10-27 17:21:12)

Offline

#3 2010-10-27 19:50:16

kryptondog
New Member
Registered: 2005-12-04
Posts: 4

Re: "Subsections"? Page hierarchy question

Hi Els,

I think this is exactly what I needed! Thanks very much for the heads up.

Offline

Board footer

Powered by FluxBB