Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Immitating sub-sections
I am interested in what’s the best way to go about this. I am in a need of section > subsection > page structure.
I basically need exactly what categories offer – nesting. So I have opted for the all category navigation type of thing, but I feel weird having a category and an Article named exactly the same (so I’d use only category URLs for links such as http://site.com/?c=category-name).
So far – my concerns are:
1) I’d like the menus to be generated dynamically – as the client adds more articles they would appear in the menu
2) I don’t like the URLs this type of thing is ugly and not intuitive http://site.com/section?c=category :(
3) I’d like to “tie” certain categories to certain sections, because I am using sections as a “first level”, but the categories for each next level because of their nesting.
I am pretty sure I have seen sites that are powered by Textpattern that have this kind of structure, so I’m wondering is there something I’m missing here or am I off completely?
Offline
Re: Immitating sub-sections
currently subsections do not exist in textpattern out of the box.
your best bet is to probably utilize gbp_permanent_links
Last edited by iblastoff (2007-12-10 21:05:17)
Offline
Re: Immitating sub-sections
Sub-sections will be included in the future version of TXP – Crockery, or 4.1, as it is now commonly known around here.
Offline
Re: Immitating sub-sections
Ah, that’s excellent news! I thought they were not rolling it out before 5.0.
Offline
#5 2007-12-11 10:27:16
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: Immitating sub-sections
Ehm… Dragan, I think version 4.1 is what you call 5.0.
Now we are on 4.0.5 and next elease will be 4.0.6, not 4.1.
So I’m sorry but probably subsections will not see the light soon
Offline
Re: Immitating sub-sections
Well that’s a bummer… But nevertheless, I think it’s a feature worth waiting for and I certainly will.
Offline
Re: Immitating sub-sections
I’m stuck again on this thing. I have opted for the wonderful plugin iblastoff suggested, really it’s a life saver. But I am having trouble wrapping my head around this:
My URL structure is as follows: /section/category1/category2/title (because one section has 2 sub section levels). All is working fine, but consider this:
- Company (section)
— Team (category1)
—- Team Member 1 (article)
—- Team Member 2 (article)
—- Team Member 3 (article)
—- Team Member 4 (article)
What do I do to get the “intro” article that is the first links (“Company” and “Team”) to display when you go to /company/ and /company/team? I am guessing sticky articles are the thing to use here, but I just can’t wrap my head around it. I have tried if_category conditionals but they only work for /company/ intro article, since in /company/team/ you are already in a category. Any thoughts?
Offline
Re: Immitating sub-sections
Offline
Re: Immitating sub-sections
Hi maverick, in case I’m not mistaking, both of those plugins don’t support URI structuring, and that’s exactly what I need. I have created the “illusional” subsections with real ease, but the URIs always look like site.com/section/article.
Looks like we gotta wait for crockery after all. :)
Offline
Re: Immitating sub-sections
draganbabic wrote:
Looks like we gotta wait for crockery after all. :)
Yep… I’m waiting on it too! And have been for quite some time. Can’t wait to see how 4.1 is shaping up, but this is the sort of thing I needed on a live site about 6 months ago, as opposed to alpha testing on strictly non-live sites tomorrow.. of course, the link setup I had to use is pretty much set in stone by now. ho hum.
In the meanwhile, is there any way to use Categories in a similar fashion? I know they can be nested rather easily (albeit not that fun to wade through all the clicking needed). Is there any way to use them to modify the URL rewriting? I’ve used nested categories before in a museum kiosk, where I wanted dynamic menus deeper than one level… but that didn’t affect the (obviously unshown) URL.
There was a plugin several years ago that allowed for creation of a custom URL string (author/section/category1/articletitle, or however you wanted) much like Wordpress. Unfortunately, it was never updated to work with the 4.0.x series (since Textpattern took over URL rewriting, clearly both a good and bad thing at this point). Are there any other options out there?
VFX artist, photographer, designer, CG generalist, and hobbyist web developer
My TXP sites: blog | reels | portfolios
Offline
Re: Immitating sub-sections
Crockery. Ahh, the neat thing that will include so much of awasome things . Unfornaturely we’ve been waiting it for a long time and it looks like it takes long time in future too. Gosh, should I grow my beard until crockery comes out, it could be quite long. Nah, maybe not – girlfriend wouldn’t like it…
iaian7 wrote:
Are there any other options out there?
gbp_permanent_links could “mask” categories as subsections if nothing else does the trick.
Cheers!
Last edited by Gocom (2007-12-20 07:16:18)
Offline
Re: Immitating sub-sections
Ah, that’s good to know. Thanks for the quick reply! I’ll keep the permanent links plugin in mind for any upcoming projects that need deeper URL schemes. For my current sites, I’ll probably have to wait till 4.1 is released, once everything is set up natively and I can make a more confident commitment to changing the URL structure (ugh, I don’t even want to think about all the rerouting that will have to take place for incoming links).
VFX artist, photographer, designer, CG generalist, and hobbyist web developer
My TXP sites: blog | reels | portfolios
Offline